List:General Discussion« Previous MessageNext Message »
From:<sinisa Date:October 4 1999 12:57pm
Subject:Re: MySQL in memory
View as plain text  
Robbin Zhang writes:
 > 
 > Any detail on how to do this ? Can you give a few examples or a pointer
 > to the doc ? Thanks !
 > 


 > 

This all is valid, of course fro 3.23.xx only !!

Say you have table Disk. In the startup script of mysql, after loading 
a server you add a line of e.g. sleep 1 and then add a line in which
mysql monitor creates a HEAP table Memory, with the same structure as
a table Disk. Then it runs insert into Memory from select
Disk. Thereafter everything update, insert, delete, goes to both
tables, while selects are done ONLY from Memory table. 


And continue like this for each table you would like to have in memory 
!!

Rather simple !


Sinisa

+----------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  mysql@stripped            |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic          |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped|
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus             |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                             |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                            |
|             /*/             \*\                Developers Team       |
+----------------------------------------------------------------------+
Thread
MySQL in memoryrandyboy2 Oct
  • Re: MySQL in memoryAlistair MacDonald2 Oct
    • Re: MySQL in memoryJani Tolonen3 Oct
  • Re: MySQL in memorysinisa3 Oct
    • Re: MySQL in memoryRobert Hazeltine3 Oct
    • Re: MySQL in memoryRobbin Zhang3 Oct
      • Re: MySQL in memoryJani Tolonen3 Oct
        • Re: MySQL in memoryRobbin Zhang3 Oct
          • Re: MySQL in memoryrandyboy3 Oct
            • Re: MySQL in memoryMatthias Urlichs4 Oct
            • Re: MySQL in memorysinisa4 Oct
            • Re: MySQL in memoryScott Hess4 Oct
      • Re: MySQL in memorysinisa4 Oct