问题
I am a beginner for Ignite, so I have some puzzles, one of which is as follows:when I try to query cache, whether it can look if memory contains or not. If not, then whether it will query database? If not,how to achieve such way? Please help me if you know.Thx.
回答1:
Queries work over in-memory data only. You can either use key access (operations like get()
, getAll()
, etc.) and utilize automatic read-through from the persistence store, or manually preload the data before running queries. For information on how effectively load large data set into the cache, see this page: https://apacheignite.readme.io/docs/data-loading
来源:https://stackoverflow.com/questions/38571357/sql-query-over-ignite-cachestore-or-over-database