Search code examples
javatime-seriesinfluxdbin-memory-database

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 in memory database similar to H2 or sqlLite? Have not found any examples or information regarding this and would love some tips.


Solution

  • I believe the only way to accomplish this would be to create a RAM-disk (file system in memory). Not very efficient: It will use an excessive amount of memory compared to a natively in-memory time-series database, and performance will not be as good as native due to the overhead imposed by the file system.