Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research + Implement Citus Sharding/Tenancy #535

Open
toastercup opened this issue Nov 6, 2017 · 2 comments
Open

Research + Implement Citus Sharding/Tenancy #535

toastercup opened this issue Nov 6, 2017 · 2 comments

Comments

@toastercup
Copy link
Member

After speaking with Citus, it appears their open source solution is relevant to Cortex's needs. It can ensure multitenant data integrity, simplify our code via use of their gem, and increase performance via sharding. It can be modified to support nested tenancy, and we can use Citus Reference Tables to share data across shards/tenants.

This Issue is a placeholder to contain research and implementation notes for Citus.

@toastercup
Copy link
Member Author

This module from Citus's activerecord-multi-tenant gem is pretty neat; it lets you wrap an ActiveRecord transaction in a block that auto-magically scopes the data to a tenant. It could cut down on mistakes and boilerplate.

Not useful for ElasticSearch. But there it is.

@toastercup
Copy link
Member Author

PS we could write something very similar for our ES queries (very easily)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant