Re: Improve the efficiency of _bt_killitems.

2024-11-03 Thread feichanghong
> On Nov 1, 2024, at 18:50, Heikki Linnakangas wrote: > > On 01/11/2024 10:41, feichanghong wrote: >>> On Nov 1, 2024, at 16:24, Heikki Linnakangas wrote: >>> >>> On 01/11/2024 09:19, feichanghong wrote: Hi hackers, In the _bt_killitems function, the following logic is present: we s

Re: Improve the efficiency of _bt_killitems.

2024-11-01 Thread Heikki Linnakangas
On 01/11/2024 10:41, feichanghong wrote: On Nov 1, 2024, at 16:24, Heikki Linnakangas wrote: On 01/11/2024 09:19, feichanghong wrote: Hi hackers, In the _bt_killitems function, the following logic is present: we search to the right for an index item that matches the heap TID and attempt t

Re: Improve the efficiency of _bt_killitems.

2024-11-01 Thread Heikki Linnakangas
On 01/11/2024 09:19, feichanghong wrote: Hi hackers, In the _bt_killitems function, the following logic is present: we search to the right for an index item that matches the heap TID and attempt to mark it as dead. If that index item has already been marked as dead by other concurrent process

Re: Improve the efficiency of _bt_killitems.

2024-11-01 Thread feichanghong
> On Nov 1, 2024, at 16:24, Heikki Linnakangas wrote: > > On 01/11/2024 09:19, feichanghong wrote: >> Hi hackers, >> In the _bt_killitems function, the following logic is present: we search to >> the right for an index item that matches the heap TID and attempt to mark it >> as dead. If that