Ämne: Servrar
Visa ett inlägg
Oläst 2004-05-03, 23:39 #22
Edvard Edvard är inte uppkopplad
Medlem
 
Reg.datum: Jan 2004
Inlägg: 62
Edvard Edvard är inte uppkopplad
Medlem
 
Reg.datum: Jan 2004
Inlägg: 62
Citat:
Eftersom det handlar om få krävande databasförfrågningar antar jag att querycache inte gör sig någon markant nytta. Det är väl främst (eller kanske t.om endast) när man frågar samma frågor ofta som querycache kan returnera ett cache:at resultat?
Jag tror faktiskt att det endast är dessa frågor som vi kommer att ha nytta av querycache nu när jag tänker efter, men eftersom dom körs så sällan så lär det inte innebära någon direkt vinst.

Anledningen till att vi inte lär tjäna något på de andra förfrågningarna är för att det som ska visas ska kombineras med varje användares inställningar.

Hittade lite intresant info på mysql.com
Citat:
Some performance data for the query cache follow. These results were generated by running the MySQL benchmark suite on a Linux Alpha 2 x 500MHz with 2GB RAM and a 64MB query cache.

* If all of the queries you're performing are simple (such as selecting a row from a table with one row), but still differ so that the queries cannot be cached, the overhead for having the query cache active is 13%. This could be regarded as the worst case scenario. In real life, queries tend to be much more complicated, so the overhead is normally significantly lower.

* Searches for a single row in a single-row table are 238% faster with the query cache than without it. This can be regarded as close to the minimum speedup to be expected for a query that is cached.
dev.mysql.com/doc/mysql/en/Query_Cache.html
Edvard är inte uppkopplad   Svara med citatSvara med citat