You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the readme, this gem is dependent upon activerecord-import, which seems dubious given the point of the low card system is that you're only dealing with small-ish number of permutations.
Would you be open to accepting a PR that removes this dependency? I may be able to find some time this weekend to bang it out.
Thanks,
Scott
P.S. I hope everything is going well with you AG :)
The text was updated successfully, but these errors were encountered:
I’m sorry it took me so long to respond — I’ve been furiously preparing for a through-hike of the Pacific Crest Trail this summer. (Sounds like something you’d do!) And I’ve been negligent in maintaining many of my open-source projects for that same reason (also, that most of my effort has gone into Fortitude).
Anyway, yes, absolutely, I’d be open to this. I think originally I used activerecord-import to try to use its “insert ignore” functionality to avoid race conditions, but then changed it so that was no longer how it worked or necessary (since I had to lock the whole table anyway, and, once you’re doing that, why bother?). If you submit a patch that works, I’ll definitely take it.
Finally, I’ve realized that low_card_tables needs a major rejiggering to make a number of cases work that don’t right now — hence the bugs. In short, right now it’s resolving constraints to low-card IDs eagerly, when those constrains are specified — i.e., where(:deleted => true) gets resolved to where(:status_id => [ 2, 4, 6, 8 ]) right when it gets called. But this is incorrect, because you want to do something like User.where(:deleted => true).new, and have it work even if there are no deleted users right. This means devolving resolution until query time, which I’m pretty sure means plugging much deeper into AREL, and that’s a pretty major change. I want to do it, but it’s going to have to wait until late fall or winter this year, once I’m back from my trip. It’s not majorly broken or anything right now (we use it at Swiftype in production all the time, and have had no problems), but there are just certain cases that should work that don’t right now and which it’s impossible to fix without this major change.
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 the readme, this gem is dependent upon activerecord-import, which seems dubious given the point of the low card system is that you're only dealing with small-ish number of permutations.
Would you be open to accepting a PR that removes this dependency? I may be able to find some time this weekend to bang it out.
Thanks,
Scott
P.S. I hope everything is going well with you AG :)
The text was updated successfully, but these errors were encountered: