Solved

how does autocommit session variable affect indexes

Posted on 2011-02-21
1
491 Views
Last Modified: 2012-05-11
Hello

I believe with the variable autocommit set to 0, the db will not commit each record one at a time during an insert, but commit them all at the end of the load which will be faster.

How does this affect the indexes? Does the database update the indexes after it has done all of the inserts or does it still update the index after each insert?

thanks
0
Comment
Question by:andieje
1 Comment
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
ID: 34951938
> How does this affect the indexes? Does the database update the indexes after it has done all of the inserts or does it still update the index after each insert?


Until data is committed, there is nothing to index (say there is no data in the DB).
So it indexes it on commit.

Regards,
Arty
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now