Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how does autocommit session variable affect indexes

Posted on 2011-02-21
1
498 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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