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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:21:09+00:00 2026-06-14T10:21:09+00:00

i have an C# application that is writing status information from a PLC device,

  • 0

i have an C# application that is writing status information from a PLC device, the program accepts parameters stored in an XML file with a config editor to edit these parameters, the program checks the Memory address of the PLC using the config file to tell the program the address name and datatype etc. if the value changes from previous value then we write the status along with fields from the config to a Log.XML, after testing, this didn’t seem like the best approach as the file was getting large and using lots of cpu to open the Log to check existing value then log new value if changed. the question is what is the best approach for storing config data and log data, the log data is getting written to very frequently, I’m wondering if SQL CE is better performance, if so shall i store config data in SQL as well?

  • 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-14T10:21:11+00:00Added an answer on June 14, 2026 at 10:21 am

    Why not have a buffer, write out to this (which will be much faster than disk). When the buffer reaches a pre-determined size write it out to disk and empty said buffer.

    We have a hybrid logging system. If the the customer sets it to logging on, it writes to disk/file. However you can keep the filestream open and write to it. The stream will deal with flushing it out to the concrete file on disk. Don’t open the log file for every line of trace. We also have a fallback if logging is off, this writes to buffer and only if something unexpected happens does it write the buffer out to disk. Its a circular buffer which keeps newest trace lines.

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

Sidebar

Related Questions

I am writing an application that logs status updates (GPS locations) from devices to
I have an application that I'm writing that uses QtWebkit and OpenSSL which deploys
I'm currently writing a web application that have about 6-12 pages. On each one
I am writing a PHP application that will have the ability to edit settings
I'm writing a drawing application that includes shapes that can have children. When I
I have just been involved in writing an application that does not use Doctype's
I am writing an application that writes to SQL Compact files that have a
I'm writing a web based application that will have its own authorization/authentication mechanism (traditional
I have a problem, that I can't solve. I am writing an application that
I have an application I'm writing for Windows 8/WinRT that uses the StreamSocket API

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.