Re: [PERFORM] Reason of Slowness of query

2011-03-23 Thread Vitalii Tymchyshyn
23.03.11 09:30, Adarsh Sharma ???(??): Thanks Chetan, here is the output of your updated query : *explain select distinct(p.crawled_page_id) from page_content p where NOT EXISTS (select 1 from clause2 c where c.source_id = p.crawled_page_id); * QU

Re: [PERFORM] Reason of Slowness of query

2011-03-23 Thread Adarsh Sharma
Thanks Chetan, here is the output of your updated query : *explain select distinct(p.crawled_page_id) from page_content p where NOT EXISTS (select 1 from clause2 c where c.source_id = p.crawled_page_id); * QUERY PLAN

Re: [PERFORM] Reason of Slowness of query

2011-03-23 Thread Chetan Suttraway
On Wed, Mar 23, 2011 at 12:50 PM, Samuel Gendler wrote: > On Tue, Mar 22, 2011 at 11:28 PM, Adarsh Sharma > wrote: > >> * >> *I perform a join query on it as : >> >> * explain analyze select distinct(p.crawled_page_id) from page_content p >> , clause2 c where p.crawled_page_id != c.source_id ; >

Re: [PERFORM] Reason of Slowness of query

2011-03-23 Thread Vitalii Tymchyshyn
23.03.11 08:28, Adarsh Sharma ???(??): * *I perform a join query on it as : * explain analyze select distinct(p.crawled_page_id) from page_content p , clause2 c where p.crawled_page_id != c.source_id ;* Your query is wrong. This query will return every *crawled_page_id* if clause2 has mor

Re: [PERFORM] Reason of Slowness of query

2011-03-23 Thread Samuel Gendler
On Tue, Mar 22, 2011 at 11:28 PM, Adarsh Sharma wrote: > * > *I perform a join query on it as : > > * explain analyze select distinct(p.crawled_page_id) from page_content p , > clause2 c where p.crawled_page_id != c.source_id ; > > *What it takes more than 1 hour to complete. As I issue the expla

Re: [PERFORM] Reason of Slowness of query

2011-03-23 Thread Chetan Suttraway
On Wed, Mar 23, 2011 at 11:58 AM, Adarsh Sharma wrote: > Dear all, > > I have 2 tables in my database name clause2( 4900 MB) & page_content(1582 > MB). > > My table definations are as : > > *page_content :- > > *CREATE TABLE page_content > ( > content_id integer, > wkb_geometry geometry, >

[PERFORM] Reason of Slowness of query

2011-03-22 Thread Adarsh Sharma
Dear all, I have 2 tables in my database name clause2( 4900 MB) & page_content(1582 MB). My table definations are as : *page_content :- *CREATE TABLE page_content ( content_id integer, wkb_geometry geometry, link_level integer, isprocessable integer, isvalid integer, isanalyzed integer