Per essere utilizzata mi pare debba essere tutto perfettamente uguale.Originariamente inviato da Ratatuia
ma scusa, quella memoria cache non si riferisce all'esercizio normale del server? vuoi dirmi che è solamente una cache per ogni connessione?
Un spazio in piu', qualsiasi cosa e la query viene ripetuta. ci sono mille eccezioni... per esempio:
ma la lista continua....codice:A query cannot be cached if it contains any of the following functions: BENCHMARK() CONNECTION_ID() CURDATE() CURRENT_DATE() CURRENT_TIME() CURRENT_TIMESTAMP() CURTIME() DATABASE() ENCRYPT() with one parameter FOUND_ROWS() GET_LOCK() LAST_INSERT_ID() LOAD_FILE() MASTER_POS_WAIT() NOW() RAND() RELEASE_LOCK() SYSDATE() UNIX_TIMESTAMP() with no param. USER()
http://dev.mysql.com/doc/mysql/en/query-cache-how.html
degno di nota:
Before a query is fetched from the query cache, MySQL checks that the user has SELECT privilege for all the involved databases and tables. If this is not the case, the cached result is not used.
come ti dicevo millanta eccezioni....
![]()