在内存虚拟数据库 [英] Virtual Database in Memory

查看:169
本文介绍了在内存虚拟数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想象一下以下内容:



我有57000项,我经常在我的应用程序中使用弄清楚事情像定位组等表


$ b $的b

而不是查询数据库,每天30万次,对于几乎没有改变它的数据,有没有存储在我的记忆直接应用和民意测验数据的信息的方法的表?或者,我必须建立某种形式的每一行的自定义数据类型,并通过测试每一行迭代,检查我想要什么?



在一些google搜索的结果我能找到最接近的就是内存数据库



感谢您,
- 西奥


< DIV CLASS =h2_lin>解决方案

的SQLite支持在内存中的表。


Imagine the following:

I have a table of 57,000 items that i regularly use in my application to figure out things like targeting groups etc.

instead of querying the database 300,000 times a day, for a table that hardly ever changes it's data, is there a way to store its information in my application and poll data in memory directly? Or, do I have to create some sort of custom datatype for each row and iterate through testing each row, to check for the results i want?

After some googling, the closest thing i could find is in-memory database

thank you, - theo

解决方案

SQLite supports in-memory tables.

这篇关于在内存虚拟数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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