Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Postgres database table partitioning support for Rails

License

Notifications You must be signed in to change notification settings

jobseekerltd/partitioned

 
 

Repository files navigation

Archived

June 2020: Inara v2.3.0 now doesn't require partitioned. This project is now archived.


Partitioned

Table-based partitioning for ActiveRecord

Partitioned simulates partitions with multiple tables.

employee = Employee.create(name: 'Keith')

This would normally produce the following:

INSERT INTO employees ('name') values ('Keith');

With Partitioned, we see:

INSERT INTO employees_partitions.p1 ('name') values ('Keith');

For more information on how partitioned works, see:

Developer setup

Running tests:

cd docker
docker-compose up -d

# wait a bit and then
bundle exec rspec

About

Postgres database table partitioning support for Rails

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Ruby 97.8%
  • HTML 1.7%
  • Other 0.5%