Posted by R. Rajesh Jeba Anbiah on 06/18/06 09:35
Kyle Teague wrote:
> What would give better performance, serializing a multidimensional array
> and storing it in a single entry in a table or storing each element of
> the array in a separate table and associating the entries with the entry
> in the other table?
<snip>
That depends. If you store multi-dimensional array in a single
field by serializing, querying data (if based on the values present in
the array) will be difficult; so in that case, storing them in tables
will be a better choice.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|