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

Improve query documentation #113

Open
ppazos opened this issue Jan 7, 2024 · 4 comments
Open

Improve query documentation #113

ppazos opened this issue Jan 7, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@ppazos
Copy link

ppazos commented Jan 7, 2024

Hi, I'm reading the documentation, just learning about MicroStream/EclipseStore, and the part that I'm mostly interested is querying capabilities. In the documentation and online video presentations there is no much info about querying. Would it be possible to demonstrate (have more tutorials available) and improve the docs on the querying area?

With this I mean querying options, alternatives, parameters, querying on complex/hierarchical objects, etc, etc.

What I'm trying to understand is how querying with MS/ES compares with a RDBMS with ORM and which is better in different scenarios.

Thanks!

@hg-ms
Copy link
Contributor

hg-ms commented Jan 9, 2024

Hello,

EclipseStore works differently to the most well-known databases.
When working with EclipseStore you’re working with one large java object-graph in memory instead of entities fetched from a DB, this graph is also the source of truth. Working with that object graph is just plain java independent of EclipseStore. EclipseStore is just used for persistence, not querying data. Loading data only happens at startup or if a Lazy-Reference loads data.
As the data is organized in a java object graph, querying data can be done with plain java API like java collections or e.g. Java Stream API.

@ppazos
Copy link
Author

ppazos commented Jan 9, 2024

Hi @hg-ms thanks for the explanation.

I'm referring to this page in the documentation (https://docs.eclipsestore.io/manual/storage/queries.html), that has one little example that is also used in the MS/ES presentation I saw in YouTube. What I would like to see and learn is a more complete documentation around that subject and more examples on querying (with the stream API or with Groovy finders for instance since I use Groovy mainly) and over complex objects.

The doc also says "Of course you must care about lazy loading if you use that feature." but not sure what that means. Again, a little example there in the docs could be of great help.

Thank you.

@hg-ms
Copy link
Contributor

hg-ms commented Jan 11, 2024

You’re right, the note on lazy loading is quite short. The docu should be improved.

@hg-ms hg-ms added the documentation Improvements or additions to documentation label Jan 11, 2024
@ppazos
Copy link
Author

ppazos commented Jan 11, 2024

@hg-ms yes, I would like to see more examples and in more complex models about querying using streams and hopefully Groovy closures via find/findAll *, and have more info about the caveats of lazy loading for querying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants