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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:14:11+00:00 2026-06-14T00:14:11+00:00

I am building an ASP.Net web application and want to access data from MongoDB

  • 0

I am building an ASP.Net web application and want to access data from MongoDB (remotely hosted). Any of my documents looks like this (have ensured index on Utc field);

{ 
   "_id" : { "$oid" : "509501393e8785025c10bc21" }, 
   "Index" : 1,
   "Url" : "http:...", 
   "CameraId" : 123,  
   "Utc" : { "$date" : 1351955858006 } 
}

Considering the performance on user end, I want to fetch this data at max speed. One option that i have tried is calling a local Web Service via JSON on Page.aspx which uses MongoDB C# driver to query documents between two Dates (Utc). That works but seems like using web service adds some extra milliseconds in request/response cycle (request for single document using db.foo.findOne() is served in 1.3 seconds on average). Average number of documents in that collection is 50,000 which will increase up-to 30,00,000.

My questions are:

  1. Am i right in saying that using web services adds some delay
    (millisecs) in request/response cycle ? (because MongoDB actually
    takes few milliseconds to complete the query)
  2. Second Option is to use MongoDB’s HTTP / REST Interface. That way i might avoid web services and directly query MongoDB. Here
    i need your opinion on,

    • Is there a way to query MongoDB between two Dates using HTTP/REST ?,
    • Is there a way to query MongoDB with ‘>’ and ‘<‘ conditions using HTTP/REST ?,
    • How does it seem, accessing DB directly on Page.aspx with security point of view ?
  3. Any other querying alternative OR optimizations for above schema?

My related question is here.

Regards.

  • 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-14T00:14:12+00:00Added an answer on June 14, 2026 at 12:14 am

    MongoDB’s native HTTP interface is not built for querying. You should continue to do what you are doing. In addition, your MongoDB servers should not be exposed publicly for security purposes and you should always go through a middle tier as you are currently doing.

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

Sidebar

Related Questions

I am building a new asp.net MVC3 web application for reporting and I want
I am building a Web Application using asp.net (C#). I come from windows forms
I'm building a 4 layered ASP.Net web application. The layers are: Data Layer Entity
I'm building a web application in ASP.NET and I want to separate it into
I'm building a silverlight application hosted on ASP.NET Web App. / IIS7 / SSL-enabled
I am building an ASP.NET web application that will use SQL Server for data
I am building an ASP.NET web application that will be deployed to a 4-node
I am building an ASP.Net MVC 3 Web application with Entity Framework 4.1. I
I'm building an ASP .NET 2.0 (C#) based web application, which is primarily intended
I have a web application (ASP.NET 4.0 in c#) and I am building a

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.