Umang Raghuvanshi
Umang Raghuvanshi

Reputation: 1258

Storing lots of raw data in Ruby on Rails

I'm building a Rails app which needs to store lots of performance metrics, fed via an API. I'm unable to decide the way to store this data. Since the data will be updated every 10s or so, I don't wish to create ActiveRecord objects.

Are there any alternative ways of storing this type of data?

Upvotes: 0

Views: 169

Answers (2)

matanco
matanco

Reputation: 2129

well 10 seconds per DB transaction is nothing comparing to high scale application, ActiveRecord+PostgreSQL should be ok for your app just configure your PostgreSQL correctly with Vacuum.

i tried once to use Redis for main data store it wasn't a good journey but you can find more info here:

https://muut.com/blog/technology/redis-as-primary-datastore-wtf.html

Upvotes: 1

Supernini
Supernini

Reputation: 591

You should try using Redis or Mongo DB. Redis more simple to use.

Upvotes: 1

Related Questions