Re: [PHP] A no brainer...
- From: edlazor@xxxxxxxxx (Ed Lazor)
- Date: Sat, 14 Oct 2006 09:02:45 -0700
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
.
- Follow-Ups:
- Re: [PHP] A no brainer...
- From: Larry Garfield
- Re: [PHP] A no brainer...
- References:
- A no brainer...
- From: "Tony Di Croce"
- Re: [PHP] A no brainer...
- From: Larry Garfield
- A no brainer...
- Prev by Date: Re: [PHP] Retrieving values from array on a class
- Next by Date: Re: [PHP] Windows ENV['_'] equivalent
- Previous by thread: Re: [PHP] A no brainer...
- Next by thread: Re: [PHP] A no brainer...
- Index(es):
Relevant Pages
|