Re: Queries slow down daily, optimizing helps -> why?
Posted by:
Rick James
Date: February 19, 2009 01:52AM
A possible explanation for speed difference...
Some of RAM is being used as a 'cache'. OPTIMIZE brings the entire table and indexes into memory (since it will fit). Then the SELECT can do its job without touching the disk.
If you don't run that SELECT for a while, and if other tables are busy, the data may get flushed from cache. Then when you run your SELECT again, it has to hit the disk.
I often find a 10x difference between a query that has to run from disk versus running from memory.
When the SELECT is slow, what happens if you promptly run the SELECT again? I expect it to be fast the second time.
Is "schul" a whole word? Or only part of a word. I don't know, for example, whether FULLTEXT understands German compound nouns. "Strasse" is probably not found in "Bahnhofstrasse" using fulltext. But it would be found using LIKE '%strasse%'.
Subject
Views
Written By
Posted
4475
February 18, 2009 04:54AM
2292
February 18, 2009 09:04AM
2384
February 18, 2009 11:57AM
2375
February 19, 2009 01:00AM
Re: Queries slow down daily, optimizing helps -> why?
2331
February 19, 2009 01:52AM
2345
February 19, 2009 03:32AM
1774
February 19, 2009 05:08AM
2218
February 19, 2009 12:24PM
2307
February 19, 2009 10:53PM
2422
February 20, 2009 08:34AM
2201
March 18, 2009 03:58AM
2318
February 21, 2009 06:15AM
2269
February 24, 2009 10:02AM
2474
February 26, 2009 02:30AM
2103
February 26, 2009 09:56AM
2293
February 26, 2009 08:14PM
2313
February 27, 2009 01:38AM
2195
February 27, 2009 07:56PM
2190
February 28, 2009 06:20AM
2526
February 28, 2009 03:43PM
2319
February 27, 2009 04:21AM