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

[Idea]: Add (GraphQL) adapter for generic data index bundle #845

Open
markus-moser opened this issue Mar 22, 2024 · 0 comments
Open

[Idea]: Add (GraphQL) adapter for generic data index bundle #845

markus-moser opened this issue Mar 22, 2024 · 0 comments

Comments

@markus-moser
Copy link
Contributor

Improvement description

Instead of filtering and loading the data objects from the database it would be a big advantage if we could add the generic data index OpenSearch indices as data source. The performance with this approach would be much better.

A difficulty in this constellation are the data object models and field type specific GraphQL implementations. To simplify the migration it might be a good idea to directly fill the data object models out of the normalized index data. With this we could reuse the same models but without actually calling the database. Solving this problem could also be a big benefit for other similar constellations where its needed to serialize data objects outside of the default database tables (e.g. versions, data-sync bundle, ...).

The denormalize() methods of the field definition adapters should do a relatively good job in denormalizing the objects again out of the index data. Difficulties might occur regarding relations (relation data types, parent etc.). Maybe its possible to implement somehow a data provider approach so that it loads related items out of the database by default but out of the OpenSearch index if we setup/add a special data provider imlementation to the object.

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

No branches or pull requests

2 participants