Database Target - Log Insert Order

classic Classic list List threaded Threaded
1 message Options
Pal
Reply | Threaded
Open this post in threaded view
|

Database Target - Log Insert Order

Pal
Are the logs guaranteed to be inserted into the database in the same order as the execution sequence? This may sound like a silly question but I have come across a situation in the past where the Entity Framework does not guarantee the same row insert sequence as the program execution. Even if you have a DateTime stamp it may not be precise enough to tell us which record was inserted first.

I am not sure if NLog uses EF but I just wanted to find out if the logging order is preserved in DB.