in-memory

In-Memory Caching with auto-regeneration on ASP.Net Core

寵の児 提交于 2019-12-05 00:33:26
问题 I guess there is not built-in way to achieve that: I have some cached data, that need to be always up to date (interval of few 10s of minutes). Its generation takes around 1-2 minutes, therefore it leads sometimes to timeout requests. For performances optimisation, I put it into memory cache, using Cache.GetOrCreateAsync , so I am sure to have fast access to the data during 40 minutes. However it still takes time when the cache expires. I would like to have a mechanism that auto-refreshes the

Relational DB in-memory?

二次信任 提交于 2019-12-04 22:23:34
问题 I have a simpleton question on Redis. If the key to it's performance is that it's in-memory, whey can't that be done on a regular SQL db? 回答1: Any DBMS can be run "in memory". Consider the use of a ramdisk. However, most DBMSs (those with SQL) are not designed to run entirely in memory and put alot of effort to minimize disk IO and paging: a DBMS works very hard to keep the "relevant data" hot (in memory and in cache) -- IO is slow, slow slow. This is because database data is often [and has

Size of memory allocated to a SQLite in-memory database

家住魔仙堡 提交于 2019-12-04 19:15:44
If a create a in-memory sqlite database using syntax below, then what is the size of maximum memory allocated to it? my $dbh = DBI->connect('dbi:SQLite:dbname=:memory:'); What will happen if size of in-memory database becomes greater than max available memory. Suppose I have 1 GB free and the database size become 1.1 GB, then will some data be written to disk or what? Is there a way to change the value of max-memory allocated to a in-memory sqlite database? Samy Vilar It will use virtual memory, yes it will write out to the disk once you've exceeded all your freely available memory, when that

Is it possible to have zlib read from and write to the same memory buffer?

浪尽此生 提交于 2019-12-04 16:32:14
I have a character buffer that I would like to compress in place. Right now I have it set up so there are two buffers and zlib's deflate reads from the input buffer and writes to the output buffer. Then I have to change the input buffer pointer to point to the output buffer and free the old input buffer. This seems like an unnecessary amount of allocation. Since zlib is compressing, the next_out pointer should always lag behind the next_in pointer. Anyway, I can't find enough documentation to verify this and was hoping someone had some experience with this. Thanks for your time! It can be done

C++ in-memory Key-Value stores

白昼怎懂夜的黑 提交于 2019-12-04 13:46:17
问题 I'm looking for suggestions regarding in-memory key-value store engines or libraries, that have C++ interfaces or that are written in C++. I'm looking for solutions that can scale without any problems to about 100mill key-value pairs and that are compatible/compilable on linux and win32/64 回答1: How about std::map ? http://cplusplus.com/reference/stl/map/ 回答2: If you really need to store such amount of pairs in memory consider this Sparse Hash. It has special implementation which is optimized

sqlite in-memory db and multithreading

久未见 提交于 2019-12-04 13:04:44
My application creates a in-memory database (:memory:) using sqlite as a back end. I want my master thread to create a connection to a in-memory database and this connection to be shared by multiple threads. Is this possible? SQLite 3.7.8 is available for download right now. Is the shared cached a possible way to go? Doug Currie If you open the connection to your in-memory database using serialized mode , then the connection may be shared among multiple threads. For this to work, your SQLite must be compiled threadsafe -- this is the default. Depending on your application, you may get better

Symfony2 in_memory users provider issue

旧巷老猫 提交于 2019-12-04 07:32:12
I have a Symfony2 application that loads users from in_memory user provider. The security.yml is the following: security: encoders: Symfony\Component\Security\Core\User\User: plaintext role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] providers: in_memory: users: admin: { password: mypassword, roles: [ 'ROLE_ADMIN' ] } firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/demo/secured/login$ security: false secured_area: pattern: ^/ anonymous: ~ http_basic: realm: "MyApp Realm - Login" access_control:

Logstash: is it possible to save documents in memory?

拜拜、爱过 提交于 2019-12-04 05:51:35
问题 I am trying to save data in memory that I would be able to retrieve quickly in my filter part. Indeed, when i receive new documents i want to retrieve former documents related in order to compute some new metrics. Can anyone tell me if it is possible and if yes how could I achieve that ? Thank you very much. Joe 回答1: The closest thing to achieve this would be to use the elasticsearch filter in order to query an ES cluster for some document or the unofficial memcached filter, which is probably

In-memory DBMS's for unit testing

大兔子大兔子 提交于 2019-12-04 05:10:11
I am looking for satisfactory options for unit testing my .NET DAL classes; since they're DAL classes, they access the database directly using ADO.NET. Presently I use an instance of a MSSQL database for the testing, but was wondering what faster options there are---since unit tests need to run as quickly as possible, an in-memory solution would be ideal. I should also mention that I have tied myself to TSQL since I'm only ever going to be using a Microsoft platform. Given that you state: I should also mention that I have tied myself to TSQL since I'm only ever going to be using a Microsoft

Looking for distributed, in-memory Graph DB [closed]

一笑奈何 提交于 2019-12-03 16:32:39
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there a database which will satisfy all (or at least most) of this requirements? Graph oriented - optimized for storing graphs and traversal(e.g HyperGraphDB, Neo4j) Running in memory, but having a persisted storage (e.g. Redis) Distributed (e.g. membase) Had .NET adapter (TCP/IP, not HTTP REST) Or am I asking too much? Thanks in advance. It seems hard to find .NET based one... I hope this might