{"id":26925089,"url":"https://github.com/ayarotsky/awesome-rails-with-postgres","last_synced_at":"2026-01-12T09:41:51.968Z","repository":{"id":284654860,"uuid":"955622780","full_name":"ayarotsky/awesome-rails-with-postgres","owner":"ayarotsky","description":"A curated collection of gems and books for building and optimizing Rails apps with Postgres","archived":false,"fork":false,"pushed_at":"2025-08-14T03:23:49.000Z","size":7,"stargazers_count":68,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-06T05:01:57.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayarotsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-26T23:47:14.000Z","updated_at":"2026-01-02T11:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc6bdad7-082b-478f-9134-cbefb9756c57","html_url":"https://github.com/ayarotsky/awesome-rails-with-postgres","commit_stats":null,"previous_names":["ayarotsky/awesome-rails-with-postgres"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayarotsky/awesome-rails-with-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayarotsky%2Fawesome-rails-with-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayarotsky%2Fawesome-rails-with-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayarotsky%2Fawesome-rails-with-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayarotsky%2Fawesome-rails-with-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayarotsky","download_url":"https://codeload.github.com/ayarotsky/awesome-rails-with-postgres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayarotsky%2Fawesome-rails-with-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-02T02:29:53.635Z","updated_at":"2026-01-12T09:41:51.963Z","avatar_url":"https://github.com/ayarotsky.png","language":null,"funding_links":[],"categories":["Programming Language Lists","Other Awesome Ruby (and blogs) Lists [![OPML](https://img.shields.io/badge/OPML-000000?style=flat-square\u0026color=orange)](/opml/other.opml)"],"sub_categories":["Ruby Lists"],"readme":"# Awesome Rails With Postgres\n\nActiveRecord and Postgres do a lot. These gems help them to do much more together.\n\n## Table of Contents\n\n- [Gems](#gems)\n- [Books](#books)\n\n## Gems\n\n### Performance Optimization\n\n- [Alba](https://github.com/okuramasafumi/alba) – JSON serialization at warp speed\n- [N+1 Control](https://github.com/palkan/n_plus_one_control) – Test for N+1 queries before they hit prod\n- [bullet](https://github.com/flyerhzm/bullet) – Helps to find N+1 queries\n- [prosopite](https://github.com/charkost/prosopite) – Helps to find N+1 queries\n- [Columns Trace](https://github.com/fatkodima/columns_trace) – Know which columns actually get used\n- [Goldiloader](https://github.com/salsify/goldiloader) – Automatic eager loading so you don’t have to\n- [Fast Count](https://github.com/fatkodima/fast_count) – COUNT(*) but without the existential crisis\n- [occams-record](https://github.com/jhollinger/occams-record) – Accelerates ActiveRecord with 3x-5x faster queries, reduced memory usage, and enhanced SQL features\n- [postgresql_cursor](https://github.com/afair/postgresql_cursor) – Efficiently paginate through large datasets using Postgres cursors\n- [Rails PG Extras](https://github.com/pawurb/rails-pg-extras) – EXPLAIN ANALYZE without the headaches\n- [ActiveRecord Analyze](https://github.com/pawurb/activerecord-analyze) – EXPLAIN ANALYZE, but make it easy\n- [Passive Columns](https://github.com/headmandev/passive_columns) – Keep unused columns from slowing you down\n- [geared_pagination](https://github.com/basecamp/geared_pagination) – Simple, performance-focused pagination for large datasets\n- [pagy](https://github.com/ddnexus/pagy) – The fastest pagination gem for Ruby on Rails\n- [Isolator](https://github.com/palkan/isolator) – Detect non-atomic interactions within DB transactions\n\n### Query Enhancement\n\n- [Hightop](https://github.com/ankane/hightop) – GROUP BY, but make it fast\n- [Groupdate](https://github.com/ankane/groupdate) – Time-based queries without the pain\n- [Rollup](https://github.com/ankane/rollup) – Incrementally aggregate data in Postgres for fast reporting\n- [Neighbor](https://github.com/ankane/neighbor) – Fast nearest-neighbor search, ActiveRecord style\n- [ActiveRecordExtended](https://github.com/GeorgeKaraszi/ActiveRecordExtended) – Extend ActiveRecord with additional methods for common use cases, including querying and relation handling\n- [ActiveMedian](https://github.com/ankane/active_median) - Median and percentile calculation for Active Record\n\n### Soft Deletes and Versioning\n\n- [Discard](https://github.com/jhawthorn/discard) – Soft deletes done right\n- [logidze](https://github.com/palkan/logidze) – Maintain an immutable history of ActiveRecord models with ease\n- [audited](https://github.com/collectiveidea/audited) – Track changes to ActiveRecord models and maintain a history of data modifications\n- [paper_trail](https://github.com/paper-trail-gem/paper_trail) – Track changes to your ActiveRecord models and keep a history of all updates, deletes, and restores\n- [paranoia](https://github.com/rubysherpas/paranoia) – Soft delete support for ActiveRecord models, ensuring deleted records can be recovered\n\n### Multi-Tenancy\n\n- [acts_as_tenant](https://github.com/ErwinM/acts_as_tenant) – Multi-tenancy support for Rails applications, simplifying tenant scoping\n\n### Full-text Search\n\n- [pg_search](https://github.com/Casecommons/pg_search) – Full-text search with Postgres for Rails applications\n- [textacular](https://github.com/textacular/textacular) – Powerful text search for Postgres in Rails, with support for full-text and trigram search\n\n### Database Structure and Schema Management\n\n- [Scenic](https://github.com/scenic-views/scenic) – Views aren't just for frontend devs\n- [fx](https://github.com/teoljungberg/fx) – Adds methods to ActiveRecord::Migration to create and manage database functions and triggers in Rails\n- [ActiveRecord Postgres Enum](https://github.com/bibendi/-activerecord-postgres_enum) – Native Postgres enums without the hassle\n- [Strong Migrations](https://github.com/ankane/strong_migrations) – Deploy without breaking literally everything\n- [Online Migrations](https://github.com/fatkodima/online_migrations) – Migrate without downtime\n- [pg_ha_migrations](https://github.com/braintree/pg_ha_migrations) – Postgres migration tool for high availability and failover scenarios\n- [The Schema Is](https://github.com/zverok/the_schema_is) – Keep your schema.rb in check\n- [annotaterb](https://github.com/drwl/annotaterb) – Automatically annotate your Ruby files with file metadata, such as author or date\n- [ActiveRecord PostGIS Adapter](https://github.com/rgeo/activerecord-postgis-adapter) – Spatial data, the Rails way\n- [rgeo](https://github.com/rgeo/rgeo) – Geospatial data handling for Ruby on Rails with support for PostGIS and other spatial extensions\n- [ActiveRecord TypedStore](https://github.com/byroot/activerecord-typedstore) – Strongly typed ActiveRecord\n\n### Attributes Management\n\n- [Measured](https://github.com/Shopify/measured) – Keep units in check before they break things\n- [awesome_nested_set](https://github.com/collectiveidea/awesome_nested_set) – An easy-to-use gem for storing hierarchical data in ActiveRecord\n- [store_model](https://github.com/DmitryTsepelev/store_model) – Persist attributes on models as a serialized data column while keeping ActiveRecord’s features intact\n- [ranked-model](https://github.com/brendon/ranked-model) – Easily manage ranked records with ActiveRecord\n- [store_attribute](https://github.com/palkan/store_attribute) – Store model attributes in the database in a more structured way\n- [acts-as-taggable-on](https://github.com/mbleigh/acts-as-taggable-on) – Add tagging functionality to any ActiveRecord model with ease\n\n### Caching and Indexing\n\n- [Blind Index](https://github.com/ankane/blind_index) – Encrypt data without losing searchability\n- [wt_activerecord_index_spy](https://github.com/WeTransfer/wt_activerecord_index_spy) – Identify indexes that are never used\n- [Counter Culture](https://github.com/magnusvk/counter_culture) – Stop recalculating counters like it's 2010\n- [Identity Cache](https://github.com/Shopify/identity_cache) – Caching, but the Shopify way\n\n### Database Integrity and Data Consistency\n\n- [Database Consistency](https://github.com/djezzzl/database_consistency) – Finds schema \u0026 data issues before they find you\n- [Active Record Doctor](https://github.com/gregnavis/active_record_doctor) – Your schema needs a checkup\n- [activerecord-clean-db-structure](https://github.com/lfittl/activerecord-clean-db-structure) – Keep your schema clean\n\n### Bulk Operations\n\n- [ActiveRecord Import](https://github.com/zdennis/activerecord-import) – Bulk inserts that fly\n- [postgres-copy](https://github.com/diogob/postgres-copy) – Fast bulk data import/export for Postgres\n\n### Data Management\n\n- [pgsync](https://github.com/ankane/pgsync) – Synchronize Postgres databases with ease, ideal for staging/production sync\n- [evil-seed](https://github.com/evilmartians/evil-seed) – Generate realistic, yet safe, dummy data for testing and development\n- [Maintenance Tasks](https://github.com/Shopify/maintenance_tasks) – Simplifies data migration management\n\n### Tools\n\n- [pgcli-rails](https://github.com/mattbrictson/pgcli-rails) – A better Postgres console for Rails\n- [pghero](https://github.com/ankane/pghero) – Postgres performance insights\n\n## Books\n\n- [High Performance PostgreSQL for Rails](https://pragprog.com/titles/aapsql/high-performance-postgresql-for-rails/)\n- [Lift the Elephant](https://leanpub.com/lift-the-elephant)\n- [Rails Scales!](https://pragprog.com/titles/cprpo/rails-scales/)\n- [Polished Ruby Programming: Build better software with more intuitive, maintainable, scalable, and high-performance Ruby code](https://www.packtpub.com/en-us/product/polished-ruby-programming-9781801072724)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayarotsky%2Fawesome-rails-with-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayarotsky%2Fawesome-rails-with-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayarotsky%2Fawesome-rails-with-postgres/lists"}