Why Sequel ORM faster than ActiveRecord

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • sequel_pg

    Faster SELECTs when using Sequel with pg

  • Another reason is that the author of Sequel is generally much more diligent when it comes to performance. For example, where Active Record uses custom classes (e.g. for attribute typecasting), Sequel often uses plain arrays and hashes, as they have lower overhead. For Postgres adapter, the code for fetching rows is intentionally written using a while loop, to avoid the overhead of proc creation. As if that wasn't enough, there is even a C extension that rewrites this part in C for maximum speed.

  • sequel-activerecord_connection

    Allows Sequel to reuse Active Record's database connection

  • Our Rails app at work is using Active Record, but I started non-apologetically using Sequel for any features I'm missing from Active Record, because I don't have the patience for Active Record to catch up. For our analytics database we're using only Sequel, because AR was missing too many features (see my article), while for our main database we're using it in tandem with Active Record, reusing Active Record's database connection. I'm pretty happy that the latter is now possible, as it gives people the opportunity to try out Sequel without any overhead.

  • 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

  • Ruby gem for authentication : rodauth

    2 projects | /r/ruby | 11 Jan 2022
  • How does Ruby's OOP translate to Rails?

    2 projects | /r/ruby | 4 Sep 2021
  • Sqlcomposer Early Preview Answering Questions

    1 project | /r/ruby | 2 Jan 2021
  • Careful with That Lock, Eugene

    1 project | news.ycombinator.com | 13 Apr 2024
  • Mastering Kredis in Ruby: Your Essential Guide

    1 project | dev.to | 9 Apr 2024