Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.4K Intelligent Advisor
- 75 Insurance
- 537.7K On-Premises Infrastructure
- 138.7K Analytics Software
- 38.6K Application Development Software
- 6.1K Cloud Platform
- 109.6K Database Software
- 17.6K Enterprise Manager
- 8.8K Hardware
- 71.3K Infrastructure Software
- 105.4K Integration
- 41.6K Security Software
Performance when using default null implicitly and explicitly.

User_Q0LCC
Member Posts: 1 Green Ribbon
Is there any difference in performance when using
ALTER TABLE BIG_TABLE ADD(NEW_COLUMN)
and
ALTER TABLE BIG_TABLE ADD(NEW_COLUMN DEFAULT NULL)?
For my use case, I have a large table with approximately 300 million rows. Now providing a default does take a lock on the table and iterates over it. For a table my size I wish to do it as fast as possible to minimize the impact on my product and cannot be stopped temporarily for this update.
I do realize that the default is NULL when using ALTER TABLE if none is provided, and have no performance impact and the DB handles it without any issues.
But does adding it explicitly impact performance for large tables?
Tagged: