yugabyte-db icon indicating copy to clipboard operation
yugabyte-db copied to clipboard

Enhancing-copy-throughput-by-storing-offsets-for-tuple

Open naanagon opened this issue 2 years ago • 5 comments

In the sample table we have almost all char columns and few varchar columns for both of these data types attlen in pg_attribute table is -1. Since we have varlen attributes in nocachegetattr function it is going to this part of the code (nocachecode, ybcModifyTable) . In this way the time complexity is O(n*n) where n is number of attributes.

there is an another for loop in (nocachecode) as it is doing the same work every time, whey can't we build a prefix sum array once for the row and just use that for all the attributes.

naanagon avatar Apr 11 '24 18:04 naanagon