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

Refactor cache #1560

Merged
merged 9 commits into from Oct 18, 2023
Merged

Refactor cache #1560

merged 9 commits into from Oct 18, 2023

Conversation

ZuoTiJia
Copy link
Contributor

@ZuoTiJia ZuoTiJia commented Oct 9, 2023

Required checklist

  • Sample config files updated (config,meta/config and default config)
  • If there are user-facing changes, the documentation needs to be updated prior to approving the PR( Link )
  • If there are any breaking changes to public APIs, please add the api change label.
  • Signed CLA (if not already signed)

Rationale for this change

Due to the #1511, the lru_cache crate was replaced.
And using the factory pattern simplifies the creation of TseriesFamily.

@ZuoTiJia
Copy link
Contributor Author

ZuoTiJia commented Oct 9, 2023

begin benchmark

@ZuoTiJia
Copy link
Contributor Author

ZuoTiJia commented Oct 9, 2023

begin benchmark

@ZuoTiJia
Copy link
Contributor Author

ZuoTiJia commented Oct 9, 2023

begin benchmark

@ZuoTiJia ZuoTiJia marked this pull request as ready for review October 11, 2023 03:27
@ZuoTiJia ZuoTiJia requested review from zipper-meng, roseboy-liu and Subsegment and removed request for zipper-meng and roseboy-liu October 12, 2023 03:50
@ZuoTiJia ZuoTiJia force-pushed the refactor-cache branch 2 times, most recently from baa8fce to 6fb1132 Compare October 13, 2023 03:55
@Subsegment Subsegment removed their request for review October 13, 2023 06:20
tskv/Cargo.toml Show resolved Hide resolved
tskv/src/tsm/reader.rs Outdated Show resolved Hide resolved
tskv/src/database.rs Outdated Show resolved Hide resolved
* cancel version pub field

* make the name clearer

* add some comments
* fix lru cache bug
* add data block exclude time range method
@ZuoTiJia ZuoTiJia merged commit 09e49fe into cnosdb:main Oct 18, 2023
7 checks passed
@ZuoTiJia ZuoTiJia deleted the refactor-cache branch October 18, 2023 09:51
@ZuoTiJia ZuoTiJia mentioned this pull request Oct 18, 2023
4 tasks
ZuoTiJia added a commit that referenced this pull request Nov 20, 2023
* minor refactor

* cancel version pub field

* make the name clearer

* add some comments

* impl cache interface

* fix lru cache bug

* add database factory

* refactor tskv tsm index cache

* add time_range exclude method

* add data block exclude time range method

* remove crate lru_cache

* remove runtime field of struct tskv::Database

* fix error ident tsf_id of struct tskv::Index

* fix: remove unused field
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.

None yet

2 participants