You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleMonetamoduleAdaptersclassSqlite < Adapterdefdelete_many(*keys)keys.flatten!keys_cs_list=keys.map{|k| "'#{String === k ? k : Marshal.dump(k)}'"}.join(', ')backend.execute("delete from #{config.table} where k in (#{keys_cs_list})")endendendend
and use like this: store.adapter.delete_many :k2, :k3, 'k3' store.adapter.delete_many [:k4, 'k4']
Hi, you are right we don't have a bulk delete operation at the moment. Generally, we have tried to keep the methods in the moneta spec a proper subset of those on Hash, but there's nothing I can see see in the Hash method smorgasbord for this... I think we can add something though.
I'm actually wondering if we should just amend the existing #delete method to enable it to take multiple args...
I can see heavy disk usage when going thru all the records and deleting some records. Bulk delete could solve this problem.
The text was updated successfully, but these errors were encountered: