Persistent Objects
Posted: Wed Jul 14, 2010 11:48 am
On my web site I am working with a genealogical database. Since that database must map the complexities of real world relationships it has a very large number of tables, many of which must be queried in order to create the web page. The performance therefore sucks. I would like to be able to avoid repeating queries by storing the responses in server level persistent objects. Session level objects are inefficient because the information in the database is shared with all users.
I am also concerned because PHP insists upon serializing my session level objects, presumably so it can store them externally. But that would defeat the purpose. I just want these objects to persist in server memory, so that I do not have to repeat the queries.
For an example of the performance problems I am encountering, try http://www.jamescobban.net/FamilyTree/l ... p?id=12789
I am also concerned because PHP insists upon serializing my session level objects, presumably so it can store them externally. But that would defeat the purpose. I just want these objects to persist in server memory, so that I do not have to repeat the queries.
For an example of the performance problems I am encountering, try http://www.jamescobban.net/FamilyTree/l ... p?id=12789