punching_bag gem is a great. But when it comes to performance I have some worries since its adds a new row for each hit.
I was wondering if its possible to increment by 1 if punchable_id exists already otherwise add a new row. This will help performance much.
I know I can do rake punching_bag:combine but then I need to to crone jobs etc and at the same time when I run rake punching_bag:combine if some posts are removed, its aborting the task since it can't find them. This is the errors:
rake aborted!
ActiveRecord::RecordNotFound: Couldn't find all Posts with 'id': (1,3,5,7,8,9)
Is it any way I can change/where can I change the gem to increment and not always add a new line?
punching_baggem is a great. But when it comes to performance I have some worries since its adds a new row for eachhit.I was wondering if its possible to
incrementby 1 ifpunchable_idexists already otherwise add a new row. This will help performance much.I know I can do
rake punching_bag:combinebut then I need to tocrone jobsetc and at the same time when I runrake punching_bag:combineif some posts are removed, its aborting the task since it can't find them. This is the errors:Is it any way I can change/where can I change the gem to
incrementand not always add a new line?