in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Trade ACID for Speed?

Last post 09-07-2008 11:15 PM by MatthiasBiel. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-03-2008 11:30 PM

    Trade ACID for Speed?

     Hi,

    is it possible to give up some of the ACID compilance for performance gains in INSERT/UPDATE queries?

    TIA,
    Matthias

    Filed under:
  • 09-04-2008 12:55 AM In reply to

    Re: Trade ACID for Speed?

    Answer

    Setting Synchonous connection string parameter to Off makes much faster commit statements, at the risk of getting a corrupted database if a system failure occurs.

     

    Regards

    Jesús López

  • 09-07-2008 11:15 PM In reply to

    Re: Trade ACID for Speed?

     Thank you for your hint. I'm experimenting with a connection string having "Synchronous = OFF;" included. If this parameter is included in the connection string, System.Data.SQLite sends "PRAGMA synchronous=OFF" to the SQLite core upon opening new connections. I'll look into the performance benefits of using this directive.

    Regards, Matthias

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems