| Author |
ALTER query in H2 In-memory database.
|
Shubhendu K Paul
Greenhorn
Joined: Aug 10, 2012
Posts: 3
|
|
As per my understanding if a table has data and user performed ALTER TABLE query for adding column, it’s internally not only adding column whereas it also iterates each rows and fill either default value or null. If I am correct then more data in a table will take more time to perform ALTER TABLE query.
I would like to understand the internal process, how database handles ALTER TABLE query for adding column when that table already has data.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26151
|
|
|
That is correct. Larger tables have more work. What do you want to know more about specifically?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: ALTER query in H2 In-memory database.
|
|
|