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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:49:53+00:00 2026-06-01T09:49:53+00:00

I have an Asp.net MVC application running on AppHarbor. It has the everyday email

  • 0

I have an Asp.net MVC application running on AppHarbor. It has the everyday email ordering process:

  1. User enters their email and submits it.
  2. System processes order and sends out email with a link.
  3. User checks email and clicks the link to do the next step…

The thing is that between steps #2 and #3 a lot of time can pass. Some users check their emails immediately, others after a day or even later. The main thing is that enough time can pass that the application on the server ends.

So when the user clicks a link it may mean that they will have to wait for a bit for the application to start back up…

Question

When step #3 processes a record in database is updated with a timestamp (type is datetime of course) when step #3 took place. But grok this: I can see records with completely identical timestamps! How can that even happen?

Timestamp gets generated in application layer and then pushes the updated to database. I’m using PetaPoco for data access.

What can cause multiple records to record the same time? My application has such small traffic that it actually does shut down sometimes during day so I find it hard to believe that multiple (up to three) users did step #3 at exactly the same time. And since this is running on a single process I suppose it’s impossible…

What can be the cause for this?

Update code is really really simple

using (var db = this.DataContext)
{
    db.Execute(Sql
        .Builder
        .Append("update dbo.SteppedProcess set Step3ProcessedOn = @0", DateTime.Now)
        .Where("Step3ProcessedOn is null")
        .Where("Id = @0", id));
}
  • 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-01T09:49:54+00:00Added an answer on June 1, 2026 at 9:49 am

    ASP.NET is running multiple threads, even on a single CPU. So this could happen. I guess it is more like to happen in your case because after the app has shut down, it needs to start up. All request coming in during the startup phase are queued and executed immediately and simultaneously once your app becomes available. This opens up a bigger window of opportunity.

    And because the Windows clock has about 15ms resolution, there is a big chance that simultaneous request will get the same timestamp.

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

Sidebar

Related Questions

I have an ASP.NET MVC application that has one part where I dont really
I have an ASP.NET MVC web application running in IIS as a subweb; let's
I have an ASP.NET MVC application that has a jQuery Treeview and a jQuery
I have an ASP.NET MVC application running on IIS7. I use sessions to keep
I have an ASP.NET MVC application up and running, using a SQL Sever express
i have asp.net mvc application where my model has a relation like Question can
I have an application running on iis(7) ( asp.net mvc if that matters )
I have an ASP.NET MVC application running on IIS 7.5. Somehow, on my machine,
I have an ASP.NET MVC web application running from http://localhost/myappname . From jQuery, I
I have an ASP.NET MVC 3 application running on both my local dev box

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.