June 2024
Intermediate to advanced
456 pages
11h 34m
English
Active Record does not currently support native table partitioning (as of version 7.1) with PostgreSQL or any other relational database. However, since table partitioning creates a table that mostly appears like a traditional table, using table partitioning with Ruby on Rails works just fine.
With that being said, partitioned tables do have differences from traditional tables, which are worth learning.
To perform a data migration to a partitioned table, first you’ll want to work from the Rails application code in a development branch where the partitioned table is in use but where you haven’t migrated any data. You could configure this in your CI with an extra shell script to migrate your existing database ...
Read now
Unlock full access