greptimedb icon indicating copy to clipboard operation
greptimedb copied to clipboard

Alter table on demand is expensive

Open fengjiachun opened this issue 11 months ago • 0 comments

What type of enhancement is this?

Performance

What does the enhancement do?

Every time we need to check if a new column needs to be added, we have to traverse all columns. While the schema usually remains unchanged, these checks are necessary. Maybe caching and hashing will be helpful to reduce the overhead of these checks.

https://github.com/GreptimeTeam/greptimedb/blob/0bb949787c12d26d14d8494605f336b5c3491648/src/operator/src/insert.rs#L377

Implementation challenges

No response

fengjiachun avatar Mar 13 '24 06:03 fengjiachun