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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:02:28+00:00 2026-05-28T19:02:28+00:00

I have a huge database that is meant to be indexed, into which I

  • 0

I have a huge database that is meant to be indexed, into which I am inserting a huge amount of information into it, broken up into a thousand chunks. Each time one is inserted the index is updated. Problem is, the time it takes to insert the information is becomes insanely long after around the 100th one or so, due to these huge transactions that cause the journal file to climb to over 300 megs.

Is there a way to postpone updating indices (possibly with a FREEZE INDEX command or something) whereby the index would stay defined in the schema, and after all the tables have been populated, the it may be unfrozen and updated.

I know that this can already be accomplished by DROP INDEX and CREATE INDEX, but I was looking for a somewhat more elegant solution, or possibly a trick.

Unfortunately, I cannot change DBMSes easily, or I would investigate using PostgreSQL.

  • 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-28T19:02:31+00:00Added an answer on May 28, 2026 at 7:02 pm

    Apart from it not being “elegant” is there any other reason why you do not want to use DROP INDEX/CREATE INDEX. I assume you are doing this bulk load during a scheduled maintenance? DROP INDEX/CREATE INDEX is pretty much standard procedure in bulk data loads. By recreating the non-clustered indexes at the end you ensure that the DB can create the most efficient index structure (thus making queries against the data run faster).

    Some databases have additional features to hide these details from you (SQL server allows you to “disable/enable” an index) but behind the scenes they are still effectively executing DROP INDEX/CREATE INDEX.

    Again, you are not saving anything even if there were a “FREEZE INDEX”. If you are entering a lot of data it would be best to completely rebuild the index at the end anyway (which effectively acts like a “DROP INDEX/CREATE INDEX”).

    If your journal is getting too big perhaps you should split the insert into even smaller transactional chunks?

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

Sidebar

Related Questions

i have a huge database of scraped forum posts that i am inserting into
I have a huge database which holds pairs of numbers (A,B), each ranging from
Image that I have a huge database which stores threads and posts from different
I have a SQLite database that contains a huge set of log messages. I
I have a huge database (800MB) which consists of a field called 'Date Last
I have a huge database that has lots and lots of poorly documented constraints.
I have a huge database in production environment which I need to take a
I have a huge database with 100's of tables and stored procedures. Using SQL
I have a huge database with some 100 tables and some 250 stored procedures.
I have a huge database with rows structured by the fields date, ad, site,

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.