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

feat: indexer db simple configuration #3735

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

zhangsoledad
Copy link
Member

@zhangsoledad zhangsoledad commented Dec 2, 2022

What problem does this PR solve?

Resolve configuration issues with Indexer db
#3696
#3730

What is changed and how it works?

the RocksDB debug log is not really of much use to the average user, just setting keep_log_file_num to 1 (0 is not allowed). only maintain a single LOG file which is probably the cleanest and simplest solution.

I don't introduce FullOptions::load_from_file here, because FullOptions::load_from_file is also a legacy dirty patch, and users don't want to see all the configuration items of rocksdb in front of them and have no idea what they can do, so for now we'll just provide the simplest and most useful options.

Related changes

  • PR to update owner/repo:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test

Release note

Title Only: Include only the PR title in the release note.

@zhangsoledad zhangsoledad requested a review from a team as a code owner December 2, 2022 10:38
@zhangsoledad zhangsoledad requested review from doitian and removed request for a team December 2, 2022 10:38
@zhangsoledad
Copy link
Member Author

bors r+

@bors bors bot merged commit 9ebc667 into nervosnetwork:develop Dec 6, 2022
bors bot added a commit that referenced this pull request Dec 6, 2022
3739: [backport] feat: indexer db simple configuration r=zhangsoledad a=zhangsoledad

<!--
Thank you for contributing to nervosnetwork/ckb!

If you haven't already, please read [CONTRIBUTING](https://github.com/nervosnetwork/ckb/blob/develop/CONTRIBUTING.md) document.

If you're unsure about anything, just ask; somebody should be along to answer within a day or two.

PR Title Format:
1. module [, module2, module3]: what's changed
2. *: what's changed
-->

### What problem does this PR solve?
#3735



### Check List <!--REMOVE the items that are not applicable-->

Tests <!-- At least one of them must be included. -->

- Unit test
- Integration test

### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. -->

```release-note
Title Only: Include only the PR title in the release note.
```



Co-authored-by: zhangsoledad <787953403@qq.com>
@doitian doitian mentioned this pull request Jan 12, 2023
4 tasks
@zhangsoledad zhangsoledad deleted the zhangsoledad/db_config branch April 17, 2023 01:19
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.

2 participants