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
skip speed
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
  3 messages - Expand 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
 
Joost  
View profile  
 More options Feb 2 2010, 12:59 pm
From: Joost <jo...@joopp.com>
Date: Tue, 2 Feb 2010 09:59:42 -0800 (PST)
Local: Tues, Feb 2 2010 12:59 pm
Subject: skip speed
Hi all,

Is there a way to speedup queries using 'skip'? I'm using skip as
described on http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-{{skip%28%29}}
but when I get into skip(1000000) (so skip 1mio documents) it gets
extremely slow.

Is there another way to walk through all documents in a collection? I
need to stream them to XML and want to do this in batches.

Cheers,

Joost


 
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 Feb 2 2010, 1:04 pm
From: Eliot Horowitz <eliothorow...@gmail.com>
Date: Tue, 2 Feb 2010 13:04:06 -0500
Local: Tues, Feb 2 2010 1:04 pm
Subject: Re: [mongodb-user] skip speed
skip is always going to be slow.
one option is to store the last record you looked at use $gt

you can't just keep the cursor open?  internally queries use a cursor,
so you can leave a cursor open and just stream in batches from it


 
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.
Joost  
View profile  
 More options Feb 3 2010, 6:08 am
From: Joost <jo...@joopp.com>
Date: Wed, 3 Feb 2010 03:08:49 -0800 (PST)
Local: Wed, Feb 3 2010 6:08 am
Subject: Re: skip speed
Thanks. I will look into this cursor thing. I'm checking MongoDB in
combination with Sphinx (www.sphinxsearch.com) in Ruby. However
indexing a MongoDB collection using Sphinx (via XML) is hard. Probably
need to create a custom xml exporter written in C or something.

On Feb 2, 7:04 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.
End of messages
« Back to Discussions « Newer topic     Older topic »