-
-
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
Allow to access collection of IDs from find result #165
Comments
Did you already find a solution for this? We would need that, too! |
Me too! Ive been toying with it for webapps (testing scalable multi tenancy
arch), and this(in addition to the ability to throw an exception if
update/deletes don't change anything) are few of the things that are a bit
not-nice with nitrite
As a side note, does anybody else feel like we are all using nitrite in all
the places it was **not** designed to be used in?
…On Tue, May 14, 2019, 5:48 PM gibis07 ***@***.***> wrote:
Did you already find a solution for this? We would need that, too!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#165>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEO6OQT65XWQ2ME5N6HABODPVLGJ7ANCNFSM4HMDLVAA>
.
|
Sorry guys, I am currently crammed up with my office work. Once I get some free time I'll work on it and hopefully introduce in 3.3.0. |
You should not do this, as this scenario is not exceptional. It's a very valid scenario. On the other hand |
This feature should be available in 3.3.0-SNAPSHOT now. |
Wow, that was fast, thanks a lot! |
Maybe a naive question, but is 3.3.0-SNAPSHOT published somewhere? It does not seem to be available through maven. We can wait for the full release, no problem, just wondering. Thanks again! |
You can get it from maven snapshot repository. https://oss.sonatype.org/content/repositories/snapshots/org/dizitart/nitrite |
Thanks, was not aware of this. Works like a charm! |
Great. Glad to be of help.. 😀 |
Thank you very much! |
I have recently started to use Nitrite as backend storage for large element collections displayed in a Java desktop application. I am very impressed with its performance.
However, I have an idea that could improve the speed further. Often, I require to get a list of IDs of all elements that fit a specific filter. At the moment I do the following:
For indexed attributes, iterating through the
Cursor
object actually takes more time than thefind
operation itself. This is a little frustrating since the Cursor already has internally exactly what I need, theCollection<NitriteId> resultSet
.I would suggest to allow access to the
resultSet
or add a way of retrieving the IDs without having to create the actual documents with all their key-value pairs.Thank you for considering my request. If you point me to a solution you would be fine with, I could also think about contributing a PR myself.
The text was updated successfully, but these errors were encountered: