Tuesday, July 4, 2017

PLSQL Performance Tuning – NOT NULL Constraint














In this post, I tried to explain the importance of constraint “NOT NULL” from performance perspective.

From SQL Perspective:

  • It adds semantic meaning to your data model. You KNOW that the column will always contain a value.
  • It removes ambiguity.
  • The more information you give the database, the better the quality of the plans. Not null impacts the optimizer, query rewrite, even the queries you must type in to get the correct answer.
  • It improves Query Performance

 From PLSQL Perspective:  Its better to use “NOT NULL” has a slight edge towards performance. The below demonstration will explain the same.

Demonstration:


  Hope it helps!!
 

2 Responses to “PLSQL Performance Tuning – NOT NULL Constraint”

Jennifer N said...
December 29, 2018 at 9:28 PM

Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com


Smart Seo said...
July 15, 2019 at 12:59 AM

I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. Abschleppen Hamburg


Post a Comment

Disclaimer

The ideas, thoughts and concepts expressed here are my own. They, in no way reflect those of my employer or any other organization/client that I am associated. The articles presented doesn't imply to any particular organization or client and are meant only for knowledge Sharing purpose. The articles can't be reproduced or copied without the Owner's knowledge or permission.