Questions tagged [in-memory-database]
An in-memory database (IMDB; also main memory database system or MMDB) is a database management system that primarily relies on main memory for computer data storage. It is contrasted with database management systems which employ a disk storage mechanism.
841
questions
0
votes
1
answer
24
views
can persistence databases and in-memory database work together?
My requirement is to utilize 2 different database sources(persistent) and serve to frontend. To make api response faster can I utilize in-memory database like H2 or gemfire, to store data that is ...
0
votes
1
answer
22
views
EF Core InMemory DB does not apply configurations from assembly and returns no data
I'm trying to test my app with an InMemory DB so I can run Postman tests against it.
I have a docker-compose that successfully starts it:
version: '3.9'
services:
api:
image: ${DOCKER_REGISTRY-}...
0
votes
1
answer
23
views
Can InfluxDb be configured for usage as an in memory database?
I have just started using the InfluxDb java client for storing some time series IoT data. I got around to thinking about performance and am curious to know if it is possible for us to use influx as an ...
0
votes
0
answers
21
views
H2 in memory database multiple connections to same database
I am using h2 in memory database for testing. I have a situation where nested database calls will happen. Using h2 the connection is getting closed on the nested call, even if the objects are ...
0
votes
0
answers
28
views
Java - In memory MongoDb for testing
I'm trying to find the best solution for running and querying an in-memory MongoDb in Java.
I looked around for the right solution, and found Fongo, which is no longer developed/supported.
My needs ...
0
votes
1
answer
30
views
Redis/hazelcast - parallel consuming without locks
The question is asked for Redis, but can also be asked for hazelcast.
Is there a way for multiple instances to work on a Redis data-structure without locks?
Example:
Assume you have a queue stored on ...
0
votes
0
answers
17
views
Redis Hash objects & zeeSQL SQL tables
I have installed Redis and loaded zeeSQL module on top of that.
For a hash object in Redis, if I need to look it up by value (like get me all students with graduation year 2010) - it's not possible in ...
0
votes
0
answers
12
views
Use the memory storage domain wise using @datorama/akita Angular
I am building an angular application using @datorama/akita. I have a web-component(angular element) as well that also uses @datorama/akita. I am using in-memory storage for store.
Here I have two ...
0
votes
1
answer
19
views
How to set up 2 core data stacks that use the same in-memory persistent store?
Setup:
My app uses core data & cloud kit mirroring.
For unit tests, I want to mock iCloud mirroring by setting cloudKitContainerOptions = nil of the NSPersistentStoreDescription of the persistent ...
0
votes
0
answers
40
views
Why does my login fail when using InMemory db provider?
I've got and AuthUser class, which works great when using ef core with SQL
However, when I try to use the InMemory database provider, 2 issues occur
My user cannot be found with UserManager<...
1
vote
0
answers
62
views
Why are my apache ignite cache put operations inconsistent in speed?
I am running a local apache ignite docker container with in the default configuration, storing all data into RAM. Writing larger base64 strings (~200kb) with the pyignite cache.put() operation into ...
0
votes
0
answers
40
views
XUnit before all (fixture) doesn't work for me
I'm trying to fill the In-Memory database with 3 data objects. I'm using a fixture for that purpose.
My Fixture :
public class UBSeedDataFixture : IDisposable
{
public AzDbContext DBContext { get;...
0
votes
1
answer
75
views
Is In-Memory a extra-cost option? (Oracle)
I’m a spatial data analyst trying to learn about options for pre-computing columns in Oracle 18c.
I've recently learned about Oracle’s In-Memory technology as a possible option:
Oracle 21c - Database ...
0
votes
0
answers
35
views
Access In memory Database with 2 difference DbContext in EntityFrameworkCore
I have 2 different DbContext in EntityFramework core 6. But they refer to same In Memory database:
builder.Services.AddDbContext<FirstDbContext>(op => { op.UseInMemoryDatabase("TestDb&...
0
votes
0
answers
48
views
Unit test success individually, but after running all tests some fails
I'm using Microsoft.EntityFrameworkCore.InMemory/3.1.16.
my tests pass when I run them individually but when I run all tests some of them fail.
Sdk :.net core 3.1
here is my optionbuilder ...
0
votes
1
answer
52
views
Is "execute as" mandatory in natively compiled stored procedures?
I noticed that all examples (that I've seen) of natively compiled stored procedures (in SQL Server) are defined using EXECUTE AS OWNER.
For example:
CREATE PROCEDURE [dbo].[InsertOrderXTP]
@id ...
0
votes
1
answer
210
views
mongo-inmemory-server in Nestjs throws MongoNotConnectedError
consider this test file
describe('UserRepository', () => {
let userRepository: UserRepository;
let module: TestingModule;
beforeAll(async () => {
module = await Test....
1
vote
0
answers
36
views
could not find driver (SQL: PRAGMA writable_schema = 1;)
I have seen that this question has been asked under different circumstances, so I'm gonna ask it again for my case since I have tried all the answers out there.
I'm trying to run Unit tests with ...
1
vote
1
answer
31
views
EntityFramework (Data Annotations only) Relationship not resolving with ID
I have the relationship of two classes.
class ClassA {
[Required]
int Id { get; set; }
[Required]
public int OtherId { get; set; }
[ForeignKey("OtherId")]
public ClassB? ...
0
votes
1
answer
48
views
does filtering a dataframe result in an increase use of ram?
Say I have 16 gigs of ram.
and I have an in memory DataFrame (df) that is like 8 gigs.
Say I want to keep this df in memory, but I have to filter it for using in another purpose.
so I do something ...
-1
votes
1
answer
76
views
Can I autostart my memoryDB instance or is always on?
I'm asking this due to pricing methods of this service, apparently I'm paying by the hour which seems to accumulate a lot of money. Can I stop and restart according to use?
0
votes
0
answers
47
views
End to end Testing Elasticsearch
A quick question relating the end to end Elasticsearch testing using Nest in c#.
I was able to setup an InMemoryConnection for Elasticsearch and be able to get a mock response when I do the search ...
0
votes
2
answers
134
views
Are the contents in a LMDB always stored BOTH in disk AND memory?
I'm wanting to use the rust implementation of LMDB but I can't seem to find whether it would always maintain a copy of whats in memory also in the disk and viceversa.
My reasoning would be that the DB ...
0
votes
0
answers
96
views
How to preserve whitespace in H2 database?
SQL
CREATE TABLE IF NOT EXISTS MY_TABLE
(
"MY_COLUMN" CHAR(4 BYTE) NOT NULL,
PRIMARY KEY(MY_COLUMN)
);
Merge into MY_TABLE KEY (MY_COLUMN) VALUES('ABC ');
select *,...
0
votes
1
answer
227
views
No able to login in h2-console using inline memory database
I am getting localhost not able to connect after trying to connect through inline db,i am passing correct username password.It was working fine before.Someone else faced this issue?
enter image ...
-1
votes
1
answer
116
views
Identify variable data type at Runtime java
I have a property class which has some variables(for example, name, age, percentage, freeClasses, etc.). Their type can be boolean, double, integer, string, an id mapping the property class (id is an ...
0
votes
1
answer
302
views
org.hsqldb.HsqlException: user lacks privilege or object not found: BATCH_JOB_INSTANCE
I am trying to load xml data to the database as a batch job using spring batch. initially load the data to hsql as in-memory data(worked fine) and now I need to persist the data so I have changed it ...
0
votes
1
answer
43
views
adding records to inmemorydatabase just once
I am trying to write my very first xunit test with Database, instead of mocking the DbContext I used the inMemoryDatabase as I read in articles, so I did like following
public class GetCustomersTest
{
...
0
votes
1
answer
47
views
Hekaton and Durability
Tech paper by Microsoft (Hekaton: SQL Server’s Memory-Optimized OLTP Engine) says
Generating a log record only at transaction commit time is possible
because Hekaton does not use write-ahead logging (...
1
vote
0
answers
48
views
suspect database due to in-memory tables and resource governor(?)
Last night, both nodes on our Alwayson AG cluster went down at the same time. After a restart, only databases containing in-memory tables were marked as suspect. In the errorlog I see this message: (...
0
votes
0
answers
67
views
XUnit Integration Test with aspnetcore.TestHost
So I want to create a scenery where I use my current's project startup to load an exception manager controller. I have my tests in xunit, with an inMemory database in postgres created inside each ...
1
vote
1
answer
52
views
High throughput in-memory database for temporary storage of images
I'm looking for a high throughput in-memory database for storing binary chunks of sizes between 1.5MB to 3MB (images).
The use case is live video stream computer vision inference pipeline, where we ...
1
vote
1
answer
302
views
EF Core - In Memory Database - HasDefaultValue is being ignored
I am running into an issue where I try to add a default value for a few columns. However in my integration tests even though my model is setup in following way:
modelBuilder.Entity<User>()....
0
votes
0
answers
39
views
How replace on InMemory DB .net?
For integration tests, I want to replace the connection from the real database with the inmemory database. But all the same, in tests, the connection is with a real database.
This two options for ...
0
votes
1
answer
161
views
Value cannot be null - In-Memory Database .Net
I am trying to use a In-Memory Database, but I get this message:
System.ArgumentNullException: 'Value cannot be null. (Parameter
'source')'
I read a lot some similar question related with this issue,...
0
votes
1
answer
146
views
How can database load large data table into memory?
I'm figuring out about in-memory databases. Some articles said that an in-memory database is a database that keeps the whole dataset in RAM.
What does that mean? It means that each time you query a ...
0
votes
1
answer
437
views
Entity Framework Core exception: No suitable constructor was found for entity type 'JsonDocument'
I got this error while running unit tests. There's no error when locally testing the app. The simplified class using JsonDocument is:
[Table("configuration")]
public class Configuration: ...
1
vote
0
answers
44
views
UseInMemoryDatabase for table storage
Can we use UseInMemoryDatabase to add some tables in table storage in memory?
var loadInMemoryDatabase = Configuration.GetValue<bool>("loadInMemoryDatabase");
if ...
0
votes
1
answer
134
views
How do in-memory databases (such as redis) communicate with other applications?
I'm in the process of implementing a local computer database that allows me to transfer information and data between C and fortran programs (C for control flow, fortran for matrix computation).
I ...
0
votes
0
answers
101
views
In-memory Realm database created not empty
Realm 10.8.0
It is observed that Realm in-memory database created and used on a background thread sometimes is not empty immediately after the creation, the procedure is called number of times. It is ...
0
votes
1
answer
33
views
DolphinDB: Check if a value already exists before updating data
I’m trying to import a new in-memory table to a distributed table. My purpose is to update the record if a value already exists and write it if it doesn’t exist. What can I use to fulfill it?
1
vote
1
answer
390
views
What is the way to list all created users in h2 memory database spring boot
I am running some unit tests using in memory h2 database in spring boot application. Meanwhile interacting with in memory h2 database, I have created some users and grant them some permissions. I can ...
0
votes
0
answers
334
views
Update username & password of h2 database and restore earlier backups
The current credentials of my H2 database is very weak and I have been asked to change it to a complex one. There are so many backups (*.db files) which are already created with my old credentials. ...
2
votes
1
answer
188
views
Does B+-tree have any advantages for an in-memory database compared to Hash if no range query is needed?
If both are well designed and programmed.
Does B+-tree have any advantages for an in-memory database compared to Hash if no range query is needed?
2
votes
0
answers
552
views
Read only access to H2 Database in Server mode
Currently I'm accessing H2 Database in server mode and I use JDBC URL like jdbc:h2:tcp://localhost:8082/nio:~/source/database/database/ from my java application. By default, the user who accesses has ...
0
votes
1
answer
75
views
Guid problem while attempting to write data in database
I'm trying to write a Food Delivery app which has entities Food and Order.
public class Order
{
[Key]
public Guid OrderId { get; set; }
public string UserName { get; set; }
public ...
0
votes
0
answers
96
views
Is there mysql memory server like mongodb-memory-server as npm package?
For testing purpose, mongodb-memory-server is so useful.
I wish I could have similar one for MySQL.
3
votes
1
answer
137
views
Mocking EF core computed field in InMemoryDatabase for unit tests
In my database I have computed field "FullName" created by EF core using HasComputedColumnSql fluent API and everything is working fine in the app.
However I have some unit tests using ...
0
votes
0
answers
43
views
Fast way to parallel (non blocking) write / bulk read an array of data?
I have the need of such an in-memory object:
bytes/float64 array
multiple threads can write in different parts of the array without locking the whole array
array can be bulk read
Is there a fast (...
0
votes
1
answer
41
views
How would you build a in-memory database which is transaction safe? ACIDITY is key here
I have been tasked to build an in-memory database that is transaction safe? Which technologies will be easier to implement? Any references are much appreciated;
I am not sure how to implement that? In ...