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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:36:58+00:00 2026-06-13T16:36:58+00:00

In an enterprise project, I need to log high volume of data (original values,

  • 0

In an enterprise project, I need to log high volume of data (original values, modified values, user who has changed data, etc.)
I’m using NLog to log such data and ELMAH to log exceptions.
I’m not sure whether to use a separate database to store logging information or use the primary database.
Advantages of using a separate database are:

  • Logs and exceptions are not a part of business, so they don’t need to
    be in the primary database.
  • Load on the main database would reduce, resulting in a better performance.

Disadvantages are:

  • If the log database stops, we will miss logs which are very important
    in this project. (though we can prevent saving if logging was not
    successful)
  • Handling transactions will be hard. (What if log saved, but the data
    are not)

There are more advantages and disadvantages of course, but all in all, I need to know: What is the best practice in an enterprise software utilizing sizeable transactional RDBMS?
Or maybe it varies from project to project based on some factors?

  • 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-13T16:36:59+00:00Added an answer on June 13, 2026 at 4:36 pm

    You want to separate and decouple the error logging from the data access. If data access rolls back, you want to keep the log access and log the fact that it rolled back in addition. If the database is down, you do want to log that the database is down. If your logging would be transactionally consistent with the data access then your system may experience 10 rollbacks a minute yet your error log would show none!

    Another reason why logging should be its own storage (database) is that more often than not the relation is not 1:1, error logging often aggregates error reported from several systems, possible backed by several databases.

    The infrastructure you use to submit error reports should handle unavailability of the error log repository (ie. logging database is down or network is partitioned), use one of the many queuing solutions available (MSMQ, RabbitMQ, ZeroMQ etc).

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

Sidebar

Related Questions

My company has a project for which I proposed using SharePoint Enterprise 2010. We
My next project involves the creation of a data API within an enterprise framework.
On large-scale Java/.Net Enterprise projects, does every developer need to have all the components/libraries/dependencies
I've created a very simple Enterprise Application project with about 7 entity beans and
I'm trying to get a new Enterprise Application Project set up in Eclipse using
I am working on a legacy Java Enterprise server project, trying to set up
include sql enterprise in setup project? how to include sql enterprise when it's not
I have a project that uses the Enterprise Library 4.1. When I target .net
I'm using SAS Enterprise Guide 5.1 and I have a project made of 4
In my project I need to create a business object validation layer that will

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.