with_advisory_lock icon indicating copy to clipboard operation
with_advisory_lock copied to clipboard

Is the unique column name still necessary or does AR do the right thing now?

Open wagenet opened this issue 4 years ago • 5 comments

It looks like the code was added 7 years ago, so I could easily believe that it is fixed.

wagenet avatar Mar 16 '21 21:03 wagenet

For instance, uncached would also seem to handle it https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/QueryCache.html#method-i-uncached

wagenet avatar Mar 16 '21 21:03 wagenet

Can you point the code here ?

seuros avatar May 24 '21 14:05 seuros

@seuros https://github.com/ClosureTree/with_advisory_lock/blob/478059f8c436702217108e4136e96b7cd8f16080/lib/with_advisory_lock/base.rb#L99-L102

wagenet avatar May 24 '21 15:05 wagenet

🙏 @seuros Any progress with this request? We had to patch it as it was causing some issues with query metrics, since this gem was generating a ton of unique queries.

rpeng avatar Sep 15 '22 21:09 rpeng

I will release the new version this weekend hopefully.

seuros avatar Sep 16 '22 06:09 seuros