The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
So yeah, PHP versus SQL in the array sorting department - do they work on a similar technology/principle? How soon before my property site starts clogging up?
Cheers!
EDIT: Oh, I forgot to add that obviously these are flat-file systems, there is no 'database' as such, more of a dataset of folders that correspond to fields. The PHP array sorting times takes into account loading all the data from a 'field', then sorting that for the desired listing type. I can provide code examples if need be.
> So yeah, PHP versus SQL in the array sorting department - do they
> work on a similar technology/principle? How soon before my property
> site starts clogging up?
>
Probably never. You're much more likely to start hitting other limitations before speed becomes an issue. Some years back before PHP and MySQL came into the mainstream, I worked on a property website. It was CGI(Perl), it used flatfiles and of course the server was much slower than anything around these days. It had several thousand properties on it and ran fine. We switched it to a DB eventually but only because we wanted to do some data manipulation & searching that wasnt practical with flatfiles.
The fact of the matter is, things like MySQL have become mainstream not because they are faster or better but rather because languages like PHP have supported them so well and thus made them incredibly easy to use. If you know how to create/use a DB, its simply less code to make use of it than to use flatfiles now. But unless you move to large datasets (where a DB's indexing will make selecting faster) or need to do complex querying (joins etc.), you'll often find flatfiles faster.
So yeah, PHP versus SQL in the array sorting department - do they work on a similar technology/principle? How soon before my property site starts clogging up?
Cheers!
EDIT: Oh, I forgot to add that obviously these are flat-file systems, there is no 'database' as such, more of a dataset of folders that correspond to fields. The PHP array sorting times takes into account loading all the data from a 'field', then sorting that for the desired listing type. I can provide code examples if need be.