Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-10-17 Thread Bruce Momjian
I doubt everyone would like trading query speed for insert/update speed plus index size If he is scanning through the entire index, he could do a sequential scan of the table, grab all the tid transaction status values, and use those when viewing the index. No need to

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-10-17 Thread Hannu Krosing
Bruce Momjian wrote: I doubt everyone would like trading query speed for insert/update speed plus index size If he is scanning through the entire index, he could do a sequential scan of the table, grab all the tid transaction status values, and use those when viewing the

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-10-17 Thread Devik
those when viewing the index. No need to store/update the transaction status in the index that way. Huh ? How ? It is how you do it now. Do you expect load several milion transaction statuses into memory, then scan index and lookup these values ? Missed I something ?

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-10-17 Thread Bruce Momjian
Bruce Momjian wrote: I doubt everyone would like trading query speed for insert/update speed plus index size If he is scanning through the entire index, he could do a sequential scan of the table, grab all the tid transaction status values, and use those when viewing

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-10-16 Thread Bruce Momjian
TODO: - add HeapTupleHeaderData into each IndexTupleData - change code to reflect above - when deleting-updating heap then also update tuples' HeapTupleHeaderData in indices I doubt everyone would like trading query speed for insert/update speed plus index size If he is scanning

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-28 Thread devik
The it will be MUCH faster to create secondary index which is much smaller than heap and use values from it. Agreed. But this will add 16 bytes (2 xid + 2 cid) to size of btitems. Currently, total size of btitem for 2-int4 key index is 16 bytes = new feature will double size of index and

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-27 Thread devik
Why not implement *true* CLUSTER? With cluster, all heap tuples will be in cluster index. It would be nice. It's pity that pg AMs are not general. There is no simple way to use btree instead of heap. But it would help. But using values from index is good idea too because you can have table

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-27 Thread devik
What is *true* CLUSTER ? 'grep CLUSTER' over the latest SQL standards gives back nothing. storing data in b-tree instead of heap for example. And update *entire* heap after addition new index?! I guess that this should be done even for limited number of indices' TIDs in a heap tuple ?

RE: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-27 Thread Mikheev, Vadim
Why not implement *true* CLUSTER? With cluster, all heap tuples will be in cluster index. It would be nice. It's pity that pg AMs are not general. There is no simple way to use btree instead of heap. But it would help. But using values from index is good idea too because you can have

RE: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-27 Thread Mikheev, Vadim
It was discussed several times for btree - add heap tid to index key and you'll scan index for particulare tuple much faster. good idea :) Why don't just to use tid ALWAYS as last part of key ? When btree code sees equal keys then it will compare tids ? Would not be better to use oids ?

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-26 Thread Alfred Perlstein
* [EMAIL PROTECTED] [EMAIL PROTECTED] [000926 02:33] wrote: Hello, I recently spoke about extending index scan to be able to take data directly from index pages. [snip] Is someone interested in this ?? Considering the speedup, I sure as hell am interested. :) When are we going to have

Re: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-26 Thread Philip Warner
At 12:28 26/09/00 +0300, Hannu Krosing wrote: TODO: - add HeapTupleHeaderData into each IndexTupleData - change code to reflect above - when deleting-updating heap then also update tuples' HeapTupleHeaderData in indices I doubt everyone would like trading query speed for insert/update

RE: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-26 Thread Mikheev, Vadim
The last step could be done in two ways. First by limiting number of indices for one table we can store coresponding indices' TIDs in each heap tuple. The update is then simple taking one disk write. Why limit it ? One could just save an tid array in each tuple . And update *entire*

RE: [HACKERS] pgsql is 75 times faster with my new index scan

2000-09-26 Thread Mikheev, Vadim
Why not implement *true* CLUSTER? With cluster, all heap tuples will be in cluster index. Vadim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 26, 2000 2:15 AM To: [EMAIL PROTECTED] Subject: [HACKERS] pgsql is 75 times faster with my