in-memory-database

Clear the in memory database after every testcase

二次信任 提交于 2019-12-10 21:57:11
问题 I am using hsqldb for testing some of the data access layer in Java. I have certain test cases like 100 around. I create a in memory database and then insert some values in the table so that with my test case i can load it, but the problem is for every test case i need to clear the in memory database, only the values not the tables. Is it possible, one thing is i need to manually delete the rows from the table and is there some thing else I can use. Thanks 回答1: If you use DbUnit in unit-tests

Is there a Clojure in memory data store?

早过忘川 提交于 2019-12-10 17:34:22
问题 I program mostly in Node, and like document stores, but I'd like to prototype the data calls between the client and the server first. I've used lowdb and da-base in the past to setup a quick Json data store. Is there something similar for Clojure? 回答1: Given that you are just prototype, if you don't need durability, a simple atom will do. If you want durability using simple files have a look at https://github.com/alandipert/enduro You can have one atom per table or you can have an atom with a

Can I configure MongoDB to be In-Memory?

喜你入骨 提交于 2019-12-10 11:16:34
问题 I am interested in using a database that will allow high performance, with an expected requirement of cluster for a massive horizontal scaling. We are looking into using MongoDB, does anyone know if I can use it InMemory (i.e. in the RAM - for performance reasons)? Tnx 回答1: A performance boost approach you can take is to use a RAM disk e.g.: mongod --smallfiles --noprealloc --nojournal --dbpath <ramdisk mounted localtion> See also: http://edgystuff.tumblr.com/post/49304254688/how-to-use

Laravel 5 testing in memory

扶醉桌前 提交于 2019-12-10 06:01:18
问题 I am writing tests via behat for my large Laravel 5 project. I have a testing copy of my MySQL database in MySQL and a seeder for that database that shares some of the seeders of other environments. All of that works as expected. However, I tried switching to using a sqlite in-memory database because it would speed up my automated tests dramatically and because I'm running "artsian migrate:refresh ---seeder=TestDatabaseSeeder at the start of every behat scenario. The problem I'm having is

Does anybody have any experience with FastDB (C++ in-memory database)?

泄露秘密 提交于 2019-12-09 12:04:44
问题 FastDB is an open-source, in-memory database that's tightly integrated with C++ (it supports a SQL-like query language where tables are classes and rows are objects). Like most IMDBs, it's meant for applications dominated by read access patterns. The algorithms and data structures are optimized for systems that read and write data entirely in main memory (RAM). It's supposed to be very fast, even compared to other in-memory databases, but I can't find any benchmarks online. I'm considering

In-memory Java DB [closed]

左心房为你撑大大i 提交于 2019-12-09 06:05:45
问题 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 5 years ago . Are there any DBs for Java that can be run in an embedded mode with some tables being stored in-memory while loading others from disk? H2 and JavaDB seem to be the two leaders for Java DBs and I know they both have an in-memory mode, but do they make you load the whole DB into memory or can you decide on a table

How efficient will be to use a in memory database to store millions of temporary values?

女生的网名这么多〃 提交于 2019-12-08 08:12:17
问题 My application currently stores millions of Double elements for a calculation. These values are only temporary values before they are used for a specific algorithm that is run at the end of the calculation. Once this calculation is done, the millions of values can be discarded. The full story is here, if you need more details. One of the solutions that was proposed is to use an in-memory database. So if I go with this solution, I will use this database to store my values in a table to replace

Does it possible to store sqlite's :memory: tables in APC?

我只是一个虾纸丫 提交于 2019-12-08 04:21:57
问题 After reading PHP / SQLite - Copying a table from disk to memory I must ask this question. Let's say I have a web page that uses some data upon every page load, I want it to be in shared memory since the data could get large, APC could solve that. I need to be able to search the data and use aggregate functions etc.. so sql is the way to go. The ultimate solution would be sqlite's :memory: table, but in PHP, such tables won't be persistent. Does it possible to store sqlite's :memory: tables

Container for database-like searches

一个人想着一个人 提交于 2019-12-07 16:21:28
问题 I'm looking for some STL, boost, or similar container to use the same way indexes are used in databases to search for record using a query like this: select * from table1 where field1 starting with 'X'; or select * from table1 where field1 like 'X%'; I thought about using std::map, but I cannot because I need to search for fields that "start with" some text, and not those that are "equal to". Beside that, I need it to work on multiple fields (each "record" has 6 fields, for example), so I

How efficient will be to use a in memory database to store millions of temporary values?

左心房为你撑大大i 提交于 2019-12-06 18:42:28
My application currently stores millions of Double elements for a calculation. These values are only temporary values before they are used for a specific algorithm that is run at the end of the calculation. Once this calculation is done, the millions of values can be discarded. The full story is here , if you need more details. One of the solutions that was proposed is to use an in-memory database. So if I go with this solution, I will use this database to store my values in a table to replace my current Map<String, List<Double>> , like: create table CALCULATION_RESULTS_XXX ( deal_id varchar2,