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 1898126
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:43:42+00:00 2026-05-17T06:43:42+00:00

Raven.Server started and binded to port 8022. I initialize DataStore in the following way:

  • 0

Raven.Server started and binded to port 8022. I initialize DataStore in the following way:

        var store = new DocumentStore() { Url = "http://localhost:8022" };
        store.Initialize();

Then i’m making such query:

        using (var session = store.OpenSession())
        {
            Stopwatch watch = new Stopwatch();
            watch.Start();

            var result = session.LuceneQuery<Item>("Raven/DocumentsByEntityName")
                .WhereEquals("Tag", "Items")
                .ToList();

            watch.Stop(); // watch.ElapsedMilliseconds == ~550 ms

            return result;

        }

And watch.ElapsedMilliseconds is always ~550 ms.
But when i look to RavenDB console i see that query was processed in 3 ms:

Request # 170: GET     -    3 ms - 200 - /indexes/Raven/DocumentsByEntityName?query=Tag%253A%255B%255BItems%255D%255D&start=0&pageSize=128

Thus ~ 99.5% of time have been spent not in RavenDB. What is the problem? (RavenDB 147)

When i switch to self-hosting of RavenDB (i.e. as embedded client) everything is okay (~3ms).

To clarify that issue not in network, http debuggers, dns servers etc. i also tested this:

            Stopwatch watch = new Stopwatch();
            watch.Start();

            WebClient client = new WebClient();
            var result = client.DownloadString("http://127.0.0.1:8022/indexes/Raven/DocumentsByEntityName?query=Tag%253A%255B%255BItems%255D%255D&start=0&pageSize=128");

            watch.Stop(); // watch.ElapsedMilliseconds == ~3-10ms

Fast. But switching to Raven.Client.Lightweight increase response time in 200 times (550-600 ms)

  • 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-05-17T06:43:42+00:00Added an answer on May 17, 2026 at 6:43 am

    Problem was because of middleman on my computer – NOD32. If you are also using it – uncheck the following checkbox:

    Setup -> Advanced setup -> Antivirus and antispyware -> Protocol filtering -> “Enable application protocal content filtering”

    Simple disabling of antivirus or firewall doesn’t help!

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

Sidebar

Related Questions

Is there a way to set optimistic concurrency to true in Raven.Server.exe.config? Or, can
I setup a sentry at server. And created a several different loggers at raven,
The raven client ( IDocumentSession ) doesn't send anything to the server until SaveChanges
I've started using Raven for my last project. When my boss learned about it,
When I click on New Document in the Raven DB Management Studio, I see
What's the recommended lifestyle for raven doc session and store under a windsor ioc,
I'm using ASP.NET MVC 3, with Raven DB as a backing data store. I
I started this example project to learn meteor: https://github.com/andrewarrow/question-raven/ I'm trying to duplicated a
I discovered raven-db and I liked it but then I saw the license... GPL
So I installed RavendDB on a Win2003 server using these instructions: http://old.ravendb.net/documentation/docs-deployment-iis And i

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.