Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
remove()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David M  
View profile  
 More options Jul 17 2009, 6:43 am
From: David M <da...@boxedice.com>
Date: Fri, 17 Jul 2009 03:43:23 -0700 (PDT)
Local: Fri, Jul 17 2009 6:43 am
Subject: remove()
What happens when you call remove() on a collection?

I have just issued a number of these commands and although they return
immediately, it seems the process is ongoing in the background and
it's block any reads to all Mongo databases.

On the console I'm seeing a lot of "key seems to have moved in the
index, refinding. found:1" following an insert (which also called
ensureIndex).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eliot Horowitz  
View profile  
 More options Jul 17 2009, 7:12 am
From: Eliot Horowitz <eliothorow...@gmail.com>
Date: Fri, 17 Jul 2009 07:12:59 -0400
Local: Fri, Jul 17 2009 7:12 am
Subject: Re: remove()
remove() does return immediately no matter what is happening on the
server and blocks.

right now it blocks all databases, but we're going to be making that
finer grained in the near future.

is it taking a lot longer than you think it should?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David M  
View profile  
 More options Jul 18 2009, 6:18 am
From: David M <da...@boxedice.com>
Date: Sat, 18 Jul 2009 03:18:11 -0700 (PDT)
Local: Sat, Jul 18 2009 6:18 am
Subject: Re: remove()
I don't think it's taking too long, it's just that I'm removing a lot
of data very often (every hour). Blocking the entire DB for reads is
not good because it stops our entire service from working. Even
collection level blocking isn't great because we need to read from
them at least every 60 seconds.

This is perhaps the most critical issue (and only) we have now with
Mongo because we need to delete data to keep our disk usage
manageable. Is it something you think you might be able to get to
soon?

On Jul 17, 12:12 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eliot Horowitz  
View profile  
 More options Jul 18 2009, 9:50 am
From: Eliot Horowitz <eliothorow...@gmail.com>
Date: Sat, 18 Jul 2009 09:50:41 -0400
Local: Sat, Jul 18 2009 9:50 am
Subject: Re: remove()
Did you mean blocking for remove() instead of blocking for reads()?
We are going to be working on this in the near future, but its not
going to be a super quick fix.

Have you though about using capped collections?  You can make a huge
capped collection, or as much disk space as you want to use on this,
and then just never have to remove()


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David M  
View profile  
 More options Jul 18 2009, 10:22 am
From: David M <da...@boxedice.com>
Date: Sat, 18 Jul 2009 07:22:26 -0700 (PDT)
Local: Sat, Jul 18 2009 10:22 am
Subject: Re: remove()
When I call remove() then it's blocking reads from the entire
database. Since I have a lot of data that is being remove()'d then
that is taking a long time and so reads are being blocked for a long
time.

I have looked at capped collections but the data size is not constant
and not predictable. We have to keep data for x days and then we
remove it, and this is dependent upon the type of account the user has
(which may change). We are also keeping high sample rate data which is
processed and then removed every hour.

On Jul 18, 2:50 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nicolas_  
View profile  
 More options Jul 21 2009, 7:11 am
From: nicolas_ <nicolas.fou...@gmail.com>
Date: Tue, 21 Jul 2009 04:11:43 -0700 (PDT)
Local: Tues, Jul 21 2009 7:11 am
Subject: Re: remove()
I second this, being able to customize the way a capped collection
deletes documents would be AWESOME.

For example, only keep the documents which have the highest values for
the key 'date'.

On 18 juil, 16:22, David M <da...@boxedice.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Clairon  
View profile  
 More options Jul 21 2009, 7:19 am
From: Nicolas Clairon <clai...@gmail.com>
Date: Tue, 21 Jul 2009 13:19:13 +0200
Local: Tues, Jul 21 2009 7:19 am
Subject: Re: remove()
+1

This can be done via a javascript function stored somewhere...

Is there a jira ticket fired yet ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »