forum : Query Cache Preload script - speeds up login by 50%

You must be logged in to post Login Register

Query Cache Preload script – speeds up login by 50%

UserPost

5:04 pm
November 6, 2009


themattreid

Admin

Nevada

posts 48

1

Just a quick note to let you know that there is a new script located at 'bin/kontroll-query_cache_preload.pl'. You can check out the souce code here if interested.

Basically what it does is run every X number of minutes if you put it in crontab and it executes the queries that are used to generate the various page data and views during the login process. It does this so that the query cache stays populated with the login data so that when you login it reads the data from the cache instead of running it all over again from disk – the results end up being anywhere from 25-50% faster logins depending on you query cache settings and the interval that you have the script running. Here is my crontab entry for the script.

#Kontrollbase query-cache preload script to speed up logins
*/30 * * * * root cd /var/www/html/kontrollbase-demo01/bin/ && /var/www/html/kontrollbase-demo01/bin/kontroll-query_cache_preload.pl > /dev/null 2>&1

This script was added in revision 202 and finished in revision 204.


http://kontrollsoft.com http://themattreid.com

 

About the kontrollsoft forum

Most Users Ever Online:

9


Currently Online:

5 Guests

Forum Stats:

Groups: 3

Forums: 12

Topics: 33

Posts: 79

Membership:

There are 425 Members

There has been 1 Guest

There is 1 Admin

There are 0 Moderators

Top Posters:

xstar – 16

Prabhat – 3

christian.keil – 2

massoo – 2

j2ict – 2

chaq – 1

Administrators: themattreid (48 Posts)