guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
I know you can create a table in MySQL with the "=MEMORY" which denotes it should load in memory (duh)
I'm thinking of implementing this into a search stored routine I wrote.
Do you think the following would work?
*check if table exists*
*create table if not*
*load data from myisam table into memory table*
*don't load anything if it's already created*
and then reference the in-memory table instead of referencing the myisam table.
The products table (which this is for) won't really change (maybe once a week) and i was wondering if this will speed up searches done if I load all 6 tables I have in memory (all of them inner join's) ?
I'm thinking of implementing this into a search stored routine I wrote.
Do you think the following would work?
*check if table exists*
*create table if not*
*load data from myisam table into memory table*
*don't load anything if it's already created*
and then reference the in-memory table instead of referencing the myisam table.
The products table (which this is for) won't really change (maybe once a week) and i was wondering if this will speed up searches done if I load all 6 tables I have in memory (all of them inner join's) ?