-
Notifications
You must be signed in to change notification settings - Fork 446
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
ch7: actionkv v2.0 does not resolve the problem in actionkv v1.0 #84
Comments
Hey folks, I've just been through Chapter 7 and I think @yamoridon is correct. If we look at the source here, the Load call sitecode/ch7/ch7-actionkv2/src/akv_disk.rs Line 44 in 19c4349
Inserting in the indexcode/ch7/ch7-actionkv2/src/lib.rs Line 100 in 19c4349
I was wondering how @timClicks would approach this part. |
I wondered when this would be pointed out. At one point I did implement a fix for this, but I believe that I pulled it out to simplify the v2 code example. |
@timClicks do you accept PRs to fix this type of issues? I would be happy to help. |
Why does the store_index_on_disk removing the self.index ? |
|
That is exactly the way I did it. I made index and data files and index is rebuilded from index file |
Section 7.7.11 points out a problem of actionkv v1 is that it has long start up time and describes a way to shorten it by storing the index itself on the database. But actionkv v2 still reads all of the database file and rebuilds the index. Thus the problem of actionkv v1 is not resolved. Considring the discussion of this section, I think it should be resolved.
The text was updated successfully, but these errors were encountered: