-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Chunk ... no longer exists #41
Comments
Could you please post the complete code here for both nitrite and mvstore alone to reproduce this error? |
I've tested it with another dataset with ~270k entries that worked fine as well. NitriteDB:
CollectionAccessor.java: https://pastebin.com/N63681vg MVStore: |
MVStore example is not giving this exception is because you are creating only one map there. But in nitrite, it creates 6 maps - 1 for collection, 3 for indices, 2 for meta information. Can you please do me a favor and create 4 mvmaps in mvstore example and insert data in all of them simultaneously in the same fashion? I just need to confirm if it is the volume of data that is creating problem or not. I might take this case to mvstore developers, so it will be better if I give as much info as possible. |
I forgot to mention that H2MVStoreMutliMap class is instantiated three times. However, instantiating my MVStore multimap both 4 and 6 times works without problems. |
I just want to make sure, you are creating 4 mvmaps in the same store and inserting 1 million of records in each of them parallely right? I asked for 4 mvmaps, as other 2 are meta maps, it contains only few records, so does not contribute to this problem at all. |
Yes, exactly. |
Thank you. Let me re-create the scenario and see what can be done about this. |
I'm currently trying to reduce the code for reproducing the error as well, and it looks like it depends on an outer layer that I didn't include here. I'll keep you updated if there maybe is a mistake on my side. |
Nevermind that, I just didn't get the exception sometimes randomly. |
Thanks a lot for the time. I am looking into it. |
Fix is ready in 2.1.1-SNAPSHOT. Please test and confirm |
I'm using Nitrite via Maven, but it's not available there yet? |
https://oss.sonatype.org/content/repositories/snapshots/org/dizitart/nitrite/2.1.1-SNAPSHOT/ You need to add snapshot repo https://oss.sonatype.org/content/repositories/snapshots in maven pom |
Thanks. Yes, now it works. |
I'm using Nitrite database to store a million documents and then perform different read operations on them (for benchmarking).
After storing the documents, while trying to read all documents via
collection.find().iterator()
, I get the following exception:Then, the next smaller read operations return more values than they should.(Not related to this problem)I create the database with the default options and three indexes, and it occurs with and without enabled compressing. The used version is 2.1.0.
Is a million documents too much for Nitrite? The same data and test cases work fine with pure MVStore. Inserting only ~340 entries works fine too.
The text was updated successfully, but these errors were encountered: