-
Notifications
You must be signed in to change notification settings - Fork 16
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
solid_cable somehow gets tangled in connects_to writing/reading #47
Comments
hmm - changing it to
only made everything worse:
|
What happens if you wrap
|
|
you mean - bundle open solid_cable and "patch" it? - how do I get that to stay when I |
yea
You would need to fork the repo and then update your gemfile to point to your fork. |
Rgr |
If that doesnt work, can you create basic rails app with repro instructions and send it over and ill investigate further. |
it's a wrap ❤️ but honestly - to me it "smells" duck-tape, second-hand pizzabox, and "real Italian virgin olive oil out'a Wuhan" or am I just picky? |
Did that work? |
yep - thx a lot - I knew it would 'cause I've done 2-3 like additions in my own repo, but that I had to go "upstream" did not sit well with me - anyways - I don't know how this is fixed but I sure don't like that "we" will have to litter the solid gems like this - But, hey, perhaps that's totally ok - in any case: thank you again for reaching out and offering a quick fix ❤️ |
Ill reopen this and work on fix. |
if you need someone to debug or validate - just yell 😆 |
@wdiechmann Ok put up #48. Mind giving it a go? |
update 20/11/2024 10:41 CET: what a rabbit hole this turns out to be 😞 My Docker Desktop somehow had died under me (and as I only rarely consult the GUI I hadn't noticed!) Why - I don't know but update 20/11/2024 8:40 CET: seems to be an issue with "docker login" ATM - so I'll have to postpone the test, but from the looks of it there's no big surprise this whole 'role' thing, though, smells, to me, like it belongs somewhere else entirely - 'cause all inserts/updates/deletes would potentially taste the salty bitter tears right? a bit under the weather - but no problem - give me 5-10min |
@npezza93 it's good! |
just remembered that this was not the first encounter! fractaledmind/activerecord-enhancedsqlite3-adapter#19 We most def should attack this issue not by patching all calls to INSERT/UPDATE/DELETE - but that's just my 2cents |
What does your database.yml look like by chance? Im having trouble reproducing in a test case |
I added a test case here https://github.com/rails/solid_cable/pull/48/files for reference @wdiechmann |
Sorry - AFK - but will BRB 😎 |
@fractaledmind led me on my way with this - my
and my
|
weird i cant reproduce with that same setup. are you able to spin up a new minimal rails app that reproduces? |
? - no - like I wrote - the fix (both the first and the somewhat more elegant second one) did the trick - my only concern is that there must be like 10-12 (at least) places all over the place where this would have to be duplicated which to me does not seem very DRY - and that's not counting other gems cutting their own 'deal' with the writing/reading/whatever they come up with - right? |
sorry if that did no translate well enough - english is not my native tongue (danish born and bread) 😅 |
not sure I would upvote a conclave between maintainers of Rails Core, solid_*, sqlite3, more addressing the read/write challenge and (possibly an agenda with room to consider) introducing the locker room accepting that the root cause in fighting concurrency is one of resource allocation more and SQL writing/reading less |
I'm "on all the latest jazz" ie
Rails main (Rails 8.1.0.alpha)
Ruby 3.3.3
activerecord (8.1.0.alpha c11312a)
solid_cable 3.0.2
sqlite3 (2.2.0)
activerecord-enhancedsqlite3-adapter (0.8.0)
Pushing the envelope I've separated the writing from the reading - that does not come cheap 😞 - and currently I'm trying to work out why I get this error in my logs
Firstly I gueessed
config/cable.yml
but addingreading: cable
did not change her mind :/Currently my only comfort is that "production" is limited to myself and other family only
😜
The text was updated successfully, but these errors were encountered: