in-memory

Saving in-memory H2 database to disk

佐手、 提交于 2019-11-29 16:58:37
问题 How can I save/load full embedded h2 in-memory database to some file or directory in binary mode for faster loading. I want to use this for caching data so I don't have to run all the lines of create table/insert clauses every time. 回答1: Instead of using an in-memory database, you could use a regular (persisted) database. You can still use in-memory tables even then (create memory table). The easiest way to persist a completely in-memory database to disk is to use the SCRIPT TO 'fileName' SQL

In-memory table in PostgreSQL

断了今生、忘了曾经 提交于 2019-11-29 11:59:23
问题 How can I create an in-memory table in PostgreSQL? 回答1: Create a RAM disk using software appropriate to your OS. Use CREATE TABLESPACE to create a DB cluster on the RAM disk. When you create your table, use the TABLESPACE clause. Obviously, your RAM tables will not persist across system reboots unless you save the RAM disk. 回答2: Well, it's not technically a in memory table, but, you can create a global temporary table: create global temporary table foo (a char(1)); It's not guaranteed that it

In-Memory user defined table, not in memory?

醉酒当歌 提交于 2019-11-29 06:28:09
I am using SQL Server 2014 CTP2, with READ_COMMITTED_SNAPSHOT ON (I think it's important for the question). I have create an In-Memory table type (very similar to the example the technet blog, SQL Server 2014 In Memory OLTP: Memory-Optimized Table Types and Table Variables ), and I have several In-Memory tables. In the query itself I have a join between the regular In-Memory tables and the In-Memory table type, acting as a filter, when I execute the query I get this error message: "A query that accesses memory optimized tables using the READ COMMITTED isolation level, cannot access disk based

How do I open an in-memory database file into sqlite3

对着背影说爱祢 提交于 2019-11-29 06:13:00
I'm on a system with no access to disk. My C program has in memory the contents of a valid, small, sqlite3 file (received over the network). I would like to use sqlite3's C API to open and access this file (read-only is fine). How do I do this? I know I can create an empty in-memory database with sqlite3_open(":memory:", &foo) but is there any way to open my existing db? I don't have the privileges to create a ram disk, but perhaps something along those lines? Thanks. Code example here (in C): http://www.mail-archive.com/sqlite-users@sqlite.org/msg15929.html 来源: https://stackoverflow.com

Has anyone published a detailed comparison between different in-memory RDBMSs? [closed]

我们两清 提交于 2019-11-29 02:53:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . There are quite a few independent and not-so-independent studies comparing traditional RDBMSs but I haven't managed to find any good material on in-memory databases. I am primarily interested in ones specialized for OLTP. So far, I managed to find generic white papers on TimesTen and MySQL Cluster, but I have

How to directly perform write.csv in R into tar.gz format?

孤者浪人 提交于 2019-11-28 23:28:15
I have a big data.frame that I want to write into a compressed CSV file. Is there any way to directly write the data into a CSV.TAR.GZ compressed file instead of performing write.csv/gzip steps in order to reduce DISK access? Thanks. Use gzfile (or bzfile for bzip2 archiving, or xzfile for xz archiving). z <- gzfile("mtcars.csv.gz") write.csv(mtcars, z) PS. If you only have one data frame, surely you don't need tar. 来源: https://stackoverflow.com/questions/17492409/how-to-directly-perform-write-csv-in-r-into-tar-gz-format

Saving to disk an in-memory database

扶醉桌前 提交于 2019-11-28 18:19:37
I made a database through sqlite in c++. The db has been created in memory (using the ":memory:" parameter insted of a filename), in order to have a very quick behavior. The database is created by the following lines: sqlite3* mem_database; if((SQLITE_OK == sqlite3_open(":memory:", &mem_database)){ // The db has been correctly created and // I can do some stuff with it. } sqlite3_close(mem_database); My problem is: how can I write the in-memory database to disk? (through c/c++ of course). I read something about the ATTACH and DETACH sqlite commands, but I can get them working only with the

Is it possible to generate and return a ZIP file with App Engine?

女生的网名这么多〃 提交于 2019-11-28 16:34:39
I have a small project that would be perfect for Google App Engine. Implementing it hinges on the ability to generate a ZIP file and return it. Due to the distributed nature of App Engine, from what I can tell, the ZIP file couldn't be created "in-memory" in the traditional sense. It would basically have to be generated and and sent in a single request/response cycle. Does the Python zip module even exist in the App Engine environment? zipfile is available at appengine and reworked example follows: from contextlib import closing from zipfile import ZipFile, ZIP_DEFLATED from google.appengine

In-Memory user defined table, not in memory?

落爺英雄遲暮 提交于 2019-11-28 03:06:13
问题 I am using SQL Server 2014 CTP2, with READ_COMMITTED_SNAPSHOT ON (I think it's important for the question). I have create an In-Memory table type (very similar to the example the technet blog, SQL Server 2014 In Memory OLTP: Memory-Optimized Table Types and Table Variables), and I have several In-Memory tables. In the query itself I have a join between the regular In-Memory tables and the In-Memory table type, acting as a filter, when I execute the query I get this error message: "A query

How do I open an in-memory database file into sqlite3

两盒软妹~` 提交于 2019-11-27 23:46:11
问题 I'm on a system with no access to disk. My C program has in memory the contents of a valid, small, sqlite3 file (received over the network). I would like to use sqlite3's C API to open and access this file (read-only is fine). How do I do this? I know I can create an empty in-memory database with sqlite3_open(":memory:", &foo) but is there any way to open my existing db? I don't have the privileges to create a ram disk, but perhaps something along those lines? Thanks. 回答1: Code example here