简体   繁体   中英

How does Apache Ignite cache related to database?

Official documentation leaves lots of questions unanswered.

I need a in-memory Ignite storage where I can keep some data, loaded from 3rd party database. I understand two things:

But I have no idea how to combine these two features to make them work together. I don't even know if it is possible. If it's impossible, how should I initialize database for future access via JDBC from external app?

Yes, it's possible. If you're able to query cache using SQLFieldsQuery, then you definitely can use the same SQL query to access it using JDBC Driver.

Here is example, that shows how to access data that was inserted from key-value api with SQL: https://github.com/dmagda/ignite_world_demo , just replace accessing from SQLFieldsQuery with accessing cache from JDBC Driver.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM