Stephane CRIVISIER

Results 6 comments of Stephane CRIVISIER

The promotion system is indeed quite complexe but powerful too and it needed some work, especialy on the performance side. Thanks for tackling it 👍 Your approach seems to be...

@jarednorman of course, I can try to explain why I think it's not a good idea to get rid of order level discount :) First, we're a marketplace, so accounting...

@epicery, we keep the user object and scramble it's data. Doing so enable us to keep stats about our average lifetime value, average order interval, average order count, etc. Migrating...

Hello, I've encountered the same issue. In my case, we're using the doctolib/safe-pg-migrations gem, which automatically disable transactions. Wrapping my migration in a ```ruby ActiveRecord::Base.connection.transaction do end ``` block fixed...

Makes perfect sense ! I guess I did not think about that 'cause I've re-enabled the transaction on my migration 😅 For what it's worth, I think the check should...

@ollym I have the same performance issue as you do, and found that a reindex of the `index_good_jobs_on_concurrency_key_when_unfinished` index helps a lot. For the same query, the explain output: -...