Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8149563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:52:42+00:00 2026-06-06T14:52:42+00:00

(Maybe I am doing something wrong but) I am getting awful read performance from

  • 0

(Maybe I am doing something wrong but) I am getting awful read performance from RavenDB!

This is my document:

public class Location
{
    public Guid Id { get; set; }
    public string Description { get; set; }
    public string DescriptionFa { get; set; }
    public double Longitude { get; set; }
    public double Latitude { get; set; }
}

And this is my code:

using (var session = documentStore.OpenSession())
{
    session.Advanced.MaxNumberOfRequestsPerSession = int.MaxValue;

    var page = 1024;
    var pageCount = 0;

    while (true)
    {
        var q = session.Query<Location>().OrderBy(l => l.Id).Skip(pageCount * page).Take(page).ToList();
        pageCount++;
        readCount += q.Count;

        if (q.Count < page)
        {
            break;
        }
    }
}

I have 2100000 documents of this kind in the database. There is a spatial index on Longitude and Latitude. I want to read them all and export them into a text file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:52:43+00:00Added an answer on June 6, 2026 at 2:52 pm

    Kaveh,
    You are doing over two thousands queries, as well as doing deep paging.
    If you want to get all information out, use the smuggler, that is what it is there for, and it is very efficent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

maybe im doing something wrong but try this sample on your server/local if i
Maybe I'm doing something wrong but I have a textarea where I've specified textAlign
I've searched the net but didn't found anything interesting. Maybe I'm doing something wrong.
I may be doing something wrong, but I haven't been able to find a
I think there is a bug in this filter_var or maybe I'm doing something
I'm not a PHP developer so I may be doing something wrong. I'm trying
Ok, maybe I'm doing something really stupid. I'm on OSX 10.6.1. I want to
Doesn't seem to work for me, maybe I just doing it wrong
I am completely new to iOS development so I may be doing this wrong
maybe it's dumb but is there a difference between new Something().method(); and Something tmpSomething

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.