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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:49:51+00:00 2026-05-27T02:49:51+00:00

Due to legacy design decisions we are using SqLite over file shares. We have

  • 0

Due to legacy design decisions we are using SqLite over file shares.
We have a central service that writes configurations to the SqLite.dbs on remote machines. Those machines treat the databases as read only so we avoid most problems with synchronization. Some of these machines are accessed through very slow connections.
I am working to improve the performance of this configuration process and I seem to have hit a bottleneck with inserts that cause an increase in the file size.

On our slowest connection we jump from about 100ms to 10’s of seconds or even a minute and a half(depending on other network traffic):

2011-11-22 15:13:07,766 --insert uses free space
2011-11-22 15:13:07,844 --insert uses free space
2011-11-22 15:13:07,922 --insert uses free space
2011-11-22 15:13:08,000 --insert uses free space
2011-11-22 15:13:51,035 --free space gone, file size grows to fit
2011-11-22 15:14:16,298 --free space gone, file size grows to fit
2011-11-22 15:14:38,876 --free space gone, file size grows to fit

I know in SqlServer it is possible to set an autogrowth value to keep an amount of padding available.
Is it possible to change this behavior from grow-to-fit to grow-with-reserve?

If it matters, the configuration service is written in C#. Database access is done through NHibernate (wrapped in a layer written by those who left us this legacy) and references System.Data.Sqlite.

  • 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-05-27T02:49:51+00:00Added an answer on May 27, 2026 at 2:49 am

    Yikes. The only thing I see would be to set the page_size to the largest (or most likely) value possible (and allowed). The upper limit is 2^16 bytes.

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

Sidebar

Related Questions

Due to a number of constraints that I won't get into, I have to
I have a link with a series of checkboxes, due to the legacy code,
Due to a merger, we have inherited a couple of legacy apps which run
We have a number of legacy projects that were recently added to TFS version
I have a legacy application that I'm trying to port to Java EE. Presently
The problem: I have a legacy php app that is coded in no particular
I have some really complicated legacy code I've been working on that crashes when
I have the following scenario: Due to an unfortunate legacy database, I have some
I have two legacy machines connected to a Linux box with USB using the
I'm working with a legacy database which due to poor management and design has

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.