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
Fixing this correctly would mean implementing ranged writes. We could make it a lot better, though, by only sending the ID from the shards to the server handling the query rather than sending the whole row.
Another thing we should change is how query profiles are generated when deleting documents. I was bitten by the fact that I had query profiling turned on in the Data Explorer when running a big delete. Apparently we generate one (relatively complex) entry in the query profile for every single deleted document.
I imagine that will go away automatically when we restructure batched deletes...
@danielmewes: the profiler shouldn't be producing one entry per deleted document (we're probably just missing a sampler there). I opened a separate issue for that.
@mlucy has implemented the improvement where we only send the primary key and not the whole document to the parser. That should make these queries more efficient.
Wanted to let you know that in 2.0 i have a large delete 5 nodes all spinning disk shared table across allow nodes just doing a delete all rows from the database and capping out 100 records a seocnd and the cluster is idle outside of that also it has 4 or 5 indexes.
something that i am also noticing is i can get between 700-1.5k updates per second on the same cluster same config. Same documents. And from what i remember an update rewrites the whole document so finding it weird it takes more time to delete then to update.
Activity
jdoliner commentedon Dec 12, 2013
We basically know why this is already. That query requires transferring every document you want to delete to the node that received the query.
I was pretty sure we already had an issue for this but I can't find it.
mlucy commentedon Dec 12, 2013
Fixing this correctly would mean implementing ranged writes. We could make it a lot better, though, by only sending the ID from the shards to the server handling the query rather than sending the whole row.
AtnNn commentedon Dec 13, 2013
Related to #134
coffeemug commentedon Oct 16, 2014
@danielmewes -- could we try to prioritize this?
danielmewes commentedon Oct 21, 2014
Another thing we should change is how query profiles are generated when deleting documents. I was bitten by the fact that I had query profiling turned on in the Data Explorer when running a big delete. Apparently we generate one (relatively complex) entry in the query profile for every single deleted document.
I imagine that will go away automatically when we restructure batched deletes...
mlucy commentedon Oct 21, 2014
@danielmewes: the profiler shouldn't be producing one entry per deleted document (we're probably just missing a sampler there). I opened a separate issue for that.
danielmewes commentedon Feb 19, 2015
@mlucy has implemented the improvement where we only send the primary key and not the whole document to the parser. That should make these queries more efficient.
wojons commentedon Apr 20, 2015
Wanted to let you know that in 2.0 i have a large delete 5 nodes all spinning disk shared table across allow nodes just doing a delete all rows from the database and capping out 100 records a seocnd and the cluster is idle outside of that also it has 4 or 5 indexes.
wojons commentedon Apr 20, 2015
something that i am also noticing is i can get between 700-1.5k updates per second on the same cluster same config. Same documents. And from what i remember an update rewrites the whole document so finding it weird it takes more time to delete then to update.
thelinuxlich commentedon Mar 12, 2018
@srh maybe close this in favor of #134 ?