Re: [PERFORM] index choosing problem

2012-03-15 Thread Ants Aasma
2012/3/15 Rural Hunter : > Now the query 3-5 using article_others_pkey are quite slow. The rows for cid > 74 are very old and seldom get updated. I think pg needs to scan quite a lot > on article_others_pkey before it gets the rows for cid 74. The same query > for other cids with new and majority o

[PERFORM] index choosing problem

2012-03-15 Thread Rural Hunter
I have a table with serveral million records. they are divided into about one hundred catagory(column cid). I created index includes the cid as the first column. I had a problem with some cids they only have few records comparing with other cids. Some of them only have serveral thousand rows. S