Of course, the cost of serialization and deserialization is non-
trivial for
any data structure that is of interesting size, and you have to
keep in mind
that if you aren't syncing to the database periodically then you
will end up
with stale data objects. (An issue in any case, but the longer the
object
representing a view of your database exists, the more of a problem it
becomes. YMMV depending on the data you're holding.)
Has anyone done tests on the difference between the value and
performance of serializing data structures versus just pulling the
data from the database?
PHP stores session data in files by default. There's gotta be a
performance hit for the file access. If you store session data in
MySQL, you're still making a DB query. It seems to me that the
performance is almost the same, which means grabbing the current
record ends up better because you avoid stale data. What do you think?
-Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php