Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > index usage mak...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3853 of 4424
Post > Topic >>

index usage makes problem

by sathiya.psql@[EMAIL PROTECTED] ("sathiya psql") Mar 6, 2008 at 01:46 PM

------=_Part_3738_4682413.1204791373563
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I had 50 lakh records in my table...

while counting that am using that row in where condition... which makes
problem, cpu is waiting for device...

Debian OS, postresql 7.4, 50 lakh records.

Query is

EXPLAIN ANALYZE select count(call_id) from call_log where call_id > 1;

while seeing the top, cpu is waiting for i/o, and without this call_id
condition if i do
       EXPLAIN ANALYZE select count(oid) from call_log where oid > 1;
it executed in 21 seconds....

------=_Part_3738_4682413.1204791373563
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I had 50 lakh records in my table...<br><br>while counting that am using
that row in where condition... which makes problem, cpu is waiting for
device...<br><br>Debian OS, postresql 7.4, 50 lakh records.<br><br>Query
is<br>
<br>EXPLAIN ANALYZE select count(call_id) from call_log where call_id &gt;
1;<br><br>while seeing the top, cpu is waiting for i/o, and without this
call_id condition if i do <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPLAIN
ANALYZE select count(oid) from call_log where oid &gt; 1;<br>
it executed in 21 seconds....<br><br>

------=_Part_3738_4682413.1204791373563--
 




 1 Posts in Topic:
index usage makes problem
sathiya.psql@[EMAIL PROTE  2008-03-06 13:46:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 8:10:11 CST 2008.