Marble Bee
Marble Bee
``` DETAIL: Process 24328 waits for ShareLock on transaction 16779530; blocked by process 5888. Process 5888 waits for ShareLock on transaction 16779529; blocked by process 24328. HINT: See server log...
**Context**: The problem is basically https://stackoverflow.com/questions/34708509/how-to-use-returning-with-on-conflict-in-postgresql/37543015 **Problem**: If you have a conditional upsert, `record.upsert!({arel_condition: upsert_condition})`, and the condition returns no rows, then the `record` object will be empty. **My situation**:...
Perhaps a failing test is a better PR? This is also about: https://github.com/jesjos/active_record_upsert/issues/128 This at least seems like something plausibly mergeable. Though I think my style is a bit different...
Example where there is a uniqueness constraint on Children's names ``` parent = Parent.new parent.children.build(name: "Ken") parent.save! ``` When the parent saves, it will auto-save the child. How can I...
Rails version 6 When upserting, association counter caches do not get incremented. It looks like counter caches do not get incremented with normal callbacks: https://github.com/rails/rails/blob/v6.1.5/activerecord/lib/active_record/counter_cache.rb#L165 I fixed it by incrementing...
I had a PNG that was 400x418. I tried so many times. I fixed it to be 418x418 and it worked first try. When it fails, it gives this error...
### Discord username (optional) _No response_ ### Describe the bug When a command is running which outputs a lot of logs, the text scrolls very quickly. I like to be...
I'm interesting in parsing very large stringified JSON strings (up to 2GB). I have the string in memory, but the problem I have is that `JSON.parse` takes too long to...
**Describe the bug** #### Background I have set up working Outline servers with Digital Ocean, AWS vanilla, AWS Lightsail and Google Cloud. I wanted to try Vultr because of their...
I have something like a Products table and a Sales table. So a product has many sales. I would like to filter for products with total sales value over X....