ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@apache.org>
Subject Re: [DISCUSSION] IGNITE-13152 Introduce spring-data repository configuration properties
Date Thu, 18 Jun 2020 03:25:27 GMT
Hi Sergey,

In my experience, Spring Repositories configuration stays minimalistic, and
one of two approaches is followed to create a schema in an underlying
storage engine.

The first approach is when we can execute schema initialization scripts
that will pre-create all SQL tables, indexes, etc. This approach works for
a relational database as well as Ignite. Once the schema is set, we can
start our Spring application with Repositories and other entities in place.
An Ignite caches/tables can also be pre-established via CacheConfiguration
with all required expiration policies and other parameters.

The second method is to let Spring Data initialize the schema dynamically
based on the configuration of your @Entity classes. That's probably what
you're suggesting to do by adding custom configuration parameters
to @Repositories. If we want to support this second dynamic approach, then
we should do this via @Entity classes and not through @Repositories. It
should be possible to introspect @Entity specific annotations and produce
DDL commands or CacheConfigurations that will create Ignite caches/tables
as soon as your Spring Data application starts.

Let me know if I miss anything.


On Wed, Jun 17, 2020 at 6:17 AM Sergey Moldachev <sergeymoldachev@gmail.com>

> Hello, Igniters!
> I'd like to discuss with you changes for *ignite-spring-data*. You can read
> about motivation and the idea in [1].
> [1] https://issues.apache.org/jira/browse/IGNITE-13152
> <https://issues.apache.org/jira/browse/IGNITE-13152#>
> --
> Regards,
> Sergey

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message