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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:39:49+00:00 2026-05-30T15:39:49+00:00

I am working on a web-app with ASP.NET MVC3. We are using nHibernate with

  • 0

I am working on a web-app with ASP.NET MVC3. We are using nHibernate with SQL Azure.
We use default setting of nHibernate.

There are a few observations that I made as part of performance analysis of our app with respect to SQL Azure.

  1. Every query takes about 280 ms to execute on Azure. I am not sure if this timing is high or normal. If Anybody has any counters please share. The same query takes about 1 ms to execute on our internal SQL Server.(The PK, FK and indices are same on Azure and local server. In fact data is also same)

  2. We have a page to show a search form. It has around 13 fields that need to be populated from DB. When I load that page, the each query takes about 280 ms. Now if I stay idle for about 5 min and then reload the page, the first query takes about 1.8 sec(yes nearly 2 sec) to execute. Rest of queries take same time as noted before. What would cause this spike? (I am totally blind on this. Any hint would be appreciated.)

  • 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-30T15:39:51+00:00Added an answer on May 30, 2026 at 3:39 pm

    As others have commented above, check if your SqlAzure instances are in the same datacenter as your web/worker roles. If they’re in the same datacenter, then the two should communicate via the datacenter’s internal network. If not, they’ll be connected via much slower links.

    The stats you provide above indicate that there’s around a 250ms latency for SQL queries. That indicates that there may well be a significant distance between web role and SQL instance.

    Ping your SQLAzure instance from your web/wroker role instance. Then, open Resource Monitor and look in the network tab and look for TCP connections from your w3wp.exe to your SQL instance’s IP address. You can then see your worker role’s averaage TCP connection latency.

    Web role's TCP connection latency to SQL Azure

    As you can see, our worker role’s average latency is 10ms or less. If you see a connection latency much above 10ms, chances are that your SQL instance is in a different datacenter.

    Unless you have specific reasons as to why you WANT SQL to be in a different datacenter, I STRONGLY encourage you to move your SQL data to an instance in the same datacenter as your worker roles.

    HTH.

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

Sidebar

Related Questions

I am working on a web app using C# and asp.net I have been
We've been working with ASP.Net MVC2 based web app. We're using DataAnnotations for model
I'm wanting to use an ORM tool for an asp.net web app I'm working
I'm using VS2010,C#,SQL Server to develop my ASP.NET web app, although this is not
I'm currently working on a web app/game using C# and ASP.NET(3.5). However, I'm running
I have a web app(ASP.NET 2.0 using C#) that I am working on. In
I am working on an asp.net web app, and I have few classes in
I´ve been working with on a Asp.NET web app using jQuery to generate a
I am working on an ASP.NET MVC web app that allows people to publish
The ASP.NET web app project I'm currently working on is getting slower over time

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.