-
I have a json file with an array of objects. I want to "import" it into nitrite and then make queries on the array. How can I get the data in the json file into the nitrite db most efficiently? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
anidotnet
Jan 18, 2021
Replies: 0 comments 2 replies
-
You need to write a parser for it to convert it to an array of Documents and load it into a collection. You can take a look at this code for parsing https://github.com/nitrite/nitrite-java/blob/5fdc8f0f83057d946a56790973a0143e634ed8e8/nitrite/src/test/java/org/dizitart/no2/TestUtil.java#L79 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
timmolter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to write a parser for it to convert it to an array of Documents and load it into a collection. You can take a look at this code for parsing https://github.com/nitrite/nitrite-java/blob/5fdc8f0f83057d946a56790973a0143e634ed8e8/nitrite/src/test/java/org/dizitart/no2/TestUtil.java#L79