Lots o' I/O
Lots o' I/O
От:
Clarence Gardner <clarence@silcom.com>
Дата:
I have a database that was populated about two months ago, and one particular table has begun causing problems. It's got about 20,000 records, all fixed length of about 1 kbytes. If we do any operation that involves a sequential scan of that table (e.g., select count(*)), it now takes about 20 seconds, and according to linux vmstat, reads 275000 disk blocks (275 mbytes). The database is vacuumed each night. I made a copy of the table (create table c2 select * from c), and a count on that table takes much less than a second. Any ideas on what the difference in these tables could be, and how I can avoid this problem? Thanks.
Re: Lots o' I/O
От:
Stephan Szabo <sszabo@megazone23.bigpanda.com>
Дата:
On Fri, 14 Feb 2003, Clarence Gardner wrote: > > I have a database that was populated about two months ago, and one > particular table has begun causing problems. It's got about 20,000 > records, all fixed length of about 1 kbytes. If we do any operation > that involves a sequential scan of that table (e.g., select count(*)), > it now takes about 20 seconds, and according to linux vmstat, reads > 275000 disk blocks (275 mbytes). The database is vacuumed each night. What does vacuum full verbose
Re: Lots o' I/O
От:
Clarence Gardner <clarence@silcom.com>
Дата:
On Fri, 14 Feb 2003, Stephan Szabo wrote: > On Fri, 14 Feb 2003, Clarence Gardner wrote: > > > > > I have a database that was populated about two months ago, and one > > particular table has begun causing problems. It's got about 20,000 > > records, all fixed length of about 1 kbytes. If we do any operation > > that involves a sequential scan of that table (e.g., select count(*)), > > it now takes about 20 seconds, and according to linux vmstat, reads > > 275000 disk blocks (275 mbytes). The database is vacuumed each night. > > What does vacuum full verbose
Re: Lots o' I/O
От:
Stephan Szabo <sszabo@megazone23.bigpanda.com>
Дата:
On Fri, 14 Feb 2003, Clarence Gardner wrote: > On Fri, 14 Feb 2003, Stephan Szabo wrote: > > > On Fri, 14 Feb 2003, Clarence Gardner wrote: > > > > > > > > I have a database that was populated about two months ago, and one > > > particular table has begun causing problems. It's got about 20,000 > > > records, all fixed length of about 1 kbytes. If we do any operation > > > that involves a sequential scan of that table (e.g., select count(*)), > > > it now takes about 20 seconds, and according to linux vmstat, reads > > > 275000 disk blocks (275 mbytes). The database is vacuumed each night. > > > > What does vacuum full verbose