Reduce memory consumption with a custom ActiveRecord attribute

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • MemoryProfiler

    memory_profiler for ruby (by SamSaffron)

  • Our project has one endpoint which gets called quite often. So, I profiled it with memory profiler and saw a line pointing to hstore.rb.

  • Ruby on Rails

    Ruby on Rails

  • That seemed interesting. Whenever an hstore value is fetched from the DB, it gets parsed there, ActiveRecord gets rid of quoting. In our project Hstore is used mainly for keeping translations. So, every record keeps identical keys in the Hstore column, something like this:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts