Large PHP arrays or MySQL temporary memory tables?
- by Mads Jensen
How would you temporarily store several thousands key => value or key => array pairs within a single process. Lookups on key will be done continuously within the process, and the data is discarded when the process ends.
Should i use arrays? temporary MySQL tables? Or something in between?