通过Ignite CacheStore或数据库进行SQL查询 [英] Sql query over Ignite CacheStore or over database

查看:98
本文介绍了通过Ignite CacheStore或数据库进行SQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ignite的初学者,所以我有一些困惑,其中之一是:当我尝试查询缓存时,它是否可以查看内存是否包含.如果没有,那么是否会查询数据库?如果没有,该如何实现?如果知道的话,请帮助我.谢谢.

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.

推荐答案

查询仅对内存中的数据起作用.您可以使用键访问(例如 get() getAll()等操作)并利用持久性存储中的自动读取功能,也可以手动预加载数据在运行查询之前.有关如何有效地将大数据集加载到缓存中的信息,请参阅以下页面: https://apacheignite.readme.io/docs/data-loading

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

这篇关于通过Ignite CacheStore或数据库进行SQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆