Miloska wrote: > Sziasztok, > > inkabb MySQL kerdes, kevesbe Linux, de azert hatha. > > Van egy adatbazis "5.0.77-community-log MySQL Community Edition (GPL)" > csak InnoDB, disken 64G, 115 tabla, CentOS 5 64 bit az OS, csak MySQL > fut. > > A jelenseg az, hogy neha lelassul a DB. > > Slow query log-ban levo keresket nezem explain-nel, valoban, > vegignyalja a 22M sorat a tablanak, nyilvan nem jo.
Valoban nem, de ilyenkor a queryt kell optimalizalni, nem az adatbazist. The slow query log can be used to find queries that take a long time to execute and are therefore candidates for optimization. However, examining a long slow query log can become a difficult task. To make this easier, you can process the slow query log using the mysqldumpslow command to summarize the queries that appear in the log. Use mysqldumpslow --help to see the options that this command supports. http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html > > Semmi gond, hajra egy analyze table es mindenki orul. Az esetek nagy > reszeben ez mukodik is, de elofordul, hogy nem. ANALYZE TABLE determines index cardinality (as displayed in the Cardinality column of SHOW INDEX output) by doing ten random dives to each of the index trees and updating index cardinality estimates accordingly. Because these are only estimates, repeated runs of ANALYZE TABLE may produce different numbers. This makes ANALYZE TABLE fast on InnoDB tables but not 100% accurate because it does not take all rows into account. http://dev.mysql.com/doc/refman/5.0/en/innodb-restrictions.html > > Nem nagyon talalok sehol doksit rola, hogy mit es hogyan kellene > monitorozni, honnan lehet kiszedni a MySQL-bol, hogy o eppen mit > gondol a tablakrol, hol lehetne latni mit is valtoztat az analyze > table. A binlogba beirja. > > Talalkozott mar valaki hasonloval? Barmi otlet mit kellene > nezni/allitani a rendszeren? > Nem jo jel, ha checkelni kell az adatbazist. percona+xtradb? -- Gabor HALASZ <[email protected]> _________________________________________________ linux lista - [email protected] http://mlf2.linux.rulez.org/mailman/listinfo/linux
