Questions tagged [in-memory]

In-memory processing in computer science is a technology for processing of data stored in random-access memory (RAM) or flash memory.

407 questions
46
votes
3 answers

How to create an in-memory object that can be used as a Reader, Writer, or Seek in Rust?

I need a completely in-memory object that I can give to BufReader and BufWriter. Something like Python's StringIO. I want to write to and read from such an object using methods ordinarily used with Files. Is there a way to do this using the standard…
liszt
  • 849
  • 1
  • 7
  • 16
41
votes
6 answers

Unsuccessful: alter table XXX drop constraint YYY in Hibernate/JPA/HSQLDB standalone

I am trying to run some Hibernate/JPA examples using an in-memory HSQL DB. The error message I get is the following: 13:54:21,427 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table ReferringItem_map drop constraint…
Jérôme Verstrynge
  • 51,859
  • 84
  • 263
  • 429
28
votes
3 answers

Saving to disk an in-memory database

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*…
Giancarlo
  • 4,122
  • 15
  • 49
  • 82
21
votes
1 answer

Convert BMP to PNG in memory for Clipboard pasting in .Net

This similar question's answers all require the file to be saved. However, I'm trying to convert the file and then copy it to the clipboard. How can I convert a Bitmap (or any image) to a PNG without saving it to the file system? Update: I'm trying…
Senseful
  • 73,679
  • 56
  • 267
  • 405
20
votes
2 answers

Saving in-memory H2 database to disk

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.
mikkom
  • 3,158
  • 4
  • 23
  • 35
20
votes
3 answers

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

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…
Soviut
  • 79,529
  • 41
  • 166
  • 227
20
votes
2 answers

Docker: in memory file system

I have a docker container which does alot of read/write to disk. I would like to test out what happens when my entire docker filesystem is in memory. I have seen some answers here that say it will not be a real performance improvement, but this is…
qballer
  • 1,777
  • 2
  • 17
  • 37
18
votes
1 answer

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

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.
imriss
  • 1,343
  • 2
  • 20
  • 34
18
votes
3 answers

Using in-memory sqlite android

I've been reading, browsing, searching a lot on this, I've criss-crossed stackoverflow back and forth many times and I managed to narrow my problem as much as I could. The only thing I do not understand, is how to fully use an in-memory SQLite…
Grandpa
  • 189
  • 1
  • 1
  • 5
16
votes
3 answers

In-memory table in PostgreSQL

How can I create an in-memory table in PostgreSQL?
PHPst
  • 14,868
  • 20
  • 85
  • 158
16
votes
2 answers

Changing the program flow when running under a debugger

Is there any way of detecting that a debugger is running in memory? and here comes the on Form Load pseudocode. if debugger.IsRunning then Application.exit end if Edit: The original title was "Detecting an in memory debugger"
OrElse
  • 8,657
  • 36
  • 127
  • 234
15
votes
2 answers

Laravel, using in-memory DB to cache results

On News Website, I have an Article model, and I want to cache the latest articles since I expect they have the highest hits. How can I write a method that operates in this way: public function findById($id) { if(Article::inMemory($id)) …
UX Labs
  • 1,383
  • 12
  • 28
15
votes
1 answer

In memory queue server

Does anyone know if there is a H2 Database equivalent for RabbitMQ queues(or with extension capability to make it compatible with RabbitMQ)? I would like to run integration tests without having to start and connect to an external RabbitMQ server. It…
alxbrd
  • 1,625
  • 1
  • 15
  • 16
13
votes
8 answers

How to iterate through an in-memory zip file in Ruby

I am writing a unit test, and one of them is returning a zip file and I want to check the content of this zip file, grab some values from it, and pass the values to the next tests. I'm using Rack Test, so I know the content of my zip file is inside…
garbagecollector
  • 3,232
  • 2
  • 27
  • 42
12
votes
1 answer

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

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…
Frank C
1
2 3
27 28