in-memory-tables

Rails 5 Active Record - is it possible to keep a table in memory?

╄→гoц情女王★ 提交于 2020-01-05 04:18:35
问题 If we have a small table which contains relatively static data, is it possible to have Active Record load this in on startup of the app and never have to hit the database for this data? Note, that ideally I would like this data to be join-able from other Models which have relationships to it. An example might be a list of countries with their telephone number prefix - this list is unlikely to change, and if it did it would be changed by an admin. Other tables might have relationships with

100% in-memory HSQL database

我们两清 提交于 2019-12-04 22:16:24
问题 I have a Java application set up as a service to do data-mining against ~3GB of data every few hours. I would like this to occur 100% in memory. Ideally I want the application to be isolated from everything; I want it to construct the database, do the mining I need, and tear down the database when it's done. However with HSQLDB, even when i use the "create memory table...." command, a log is written of all of the statements and the table is recreated the next time the application runs. I'm

100% in-memory HSQL database

风流意气都作罢 提交于 2019-12-03 15:49:36
I have a Java application set up as a service to do data-mining against ~3GB of data every few hours. I would like this to occur 100% in memory. Ideally I want the application to be isolated from everything; I want it to construct the database, do the mining I need, and tear down the database when it's done. However with HSQLDB, even when i use the "create memory table...." command, a log is written of all of the statements and the table is recreated the next time the application runs. I'm doing a LOT of inserts, ~150k+, so this file will quickly grow in size. I also don't care about