low_card_tables icon indicating copy to clipboard operation
low_card_tables copied to clipboard

Store low-cardinality columns in a separate table for vastly more flexibility and better performance.

Results 10 low_card_tables issues
Sort by recently updated
recently updated
newest added

Hey @ageweke , it's been a while, how's it going? We just started using this gem, because it was so helpful before ;) However, we just stumbled on an issue...

I'd love to use this gem in my latest project, but unfortunately I'm using JRuby and Postgres, which is non-compatible according the README (and my test suite). As mentioned in...

If you have a base table that has no appropriate `foo_id` column pointing to the low-card table, no error is reported. This makes things super-confusing. We should report an error...

If you have a column `foo` in your base table, and a `foo` in the low-card table, `low_card_tables` should report the conflict with an exception. Currently, it doesn’t, and confusion...

Code like this: ``` ruby MyTable.create(:foo => :bar) ``` seems to be setting `foo` to `NULL`, not the string `bar`.

Code like this: ``` ruby scope = MyTable.where(:foo => 'bar') scope.create(:bar => 'baz') ``` …seems to not set `:foo` at all. :(

Steps to reproduce: 1. Have a long-running process (like Rails) using low-card tables. 2. Run a migration that adds new, nullable columns to the low-card table. Expected results: 1. The...

Calling #reload on an ActiveRecord model does not seem to reload the low-card association…

It looks like predicate methods aren't proxied, for example: ``` user.active #=> true user.active? #=> NoMethodError: undefined method `active?' for # user.status.active? #=> true ```

Hi @ageweke, this is a pretty interesting idea! I'm implementing it on a new project and I'm wondering if there's any gotcha for using it along with `factory_girl` Seems like...