Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize drop_table, rename_table, delete_by_col_eq, and clear_table #436

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Oct 17, 2023

Description of Changes

These functions and methods now clone less and collect keys/ids to rename/drop/delete rather than storing a cloned ProductValue that is then used to do the work.

API and ABI

  • This is a breaking change to the module ABI
  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI
  • This is a breaking change to the SDK API

If the API is breaking, please state below what will break

Expected complexity level and risk

2

@Centril Centril force-pushed the centril/drop-rename-delete-opt branch from 417a012 to 85e21b3 Compare October 17, 2023 09:36
crates/core/src/host/instance_env.rs Show resolved Hide resolved
crates/core/src/host/instance_env.rs Outdated Show resolved Hide resolved
crates/core/src/db/relational_db.rs Outdated Show resolved Hide resolved
@Centril Centril force-pushed the centril/drop-rename-delete-opt branch from 85e21b3 to 9ff9df9 Compare October 18, 2023 21:18
@Centril Centril changed the title Optimize drop_table, rename_table, and delete_by_col_eq Optimize drop_table, rename_table, delete_by_col_eq, and clear_table Oct 18, 2023
@mamcx mamcx merged commit 39ffcf6 into a-little-less-clone Oct 19, 2023
5 checks passed
Centril added a commit that referenced this pull request Oct 19, 2023
…_table` (#436)

* optimize delete, drop, rename

* address review comments
Centril added a commit that referenced this pull request Oct 19, 2023
…_table` (#436)

* optimize delete, drop, rename

* address review comments

* even less cloning

* more refactoring
Centril added a commit that referenced this pull request Oct 19, 2023
…_table` (#436)

* optimize delete, drop, rename

* address review comments

* even less cloning

* more refactoring
Centril added a commit that referenced this pull request Oct 19, 2023
* DataRef: borrow for great perf

* address review comments

* Optimize `drop_table`, `rename_table`, `delete_by_col_eq`, and `clear_table` (#436)

* optimize delete, drop, rename

* address review comments

* even less cloning

* more refactoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants