Posted by Good Man on 12/05/07 19:41
Mikhail Kovalev <mikhail_kovalev@mail.ru> wrote in news:59d586fd-60f0-4a33-
8c48-247d1e719203@o6g2000hsd.googlegroups.com:
> Hi.
>
> I work with recursive array trees of 10-20 levels in PHP. So far I
> have been using serialize() to store the arrays, generating files 5+
> MB large, which take 10-15 seconds to unserialize and about tenfold of
> RAM! I've been adviced to use MySQL (relational db's), but are there
> any other options beside that and var_export/include? Something that
> works in a similar way as MySQL when adding a new element without
> loading the whole database itself...
>
> Thanks!
Databases are truly helpful in the case.
You might find this article well worth reading:
http://www.sitepoint.com/article/hierarchical-data-database
Navigation:
[Reply to this message]
|