Book description
Learn the best way of writing code to run inside a relational database. This book shows how a holistic and set-oriented approach to database programming can far exceed the performance of the row-by-row model that is too often used by developers who haven't been shown a better way.
Two styles of programming are encountered in the database world. Classical programming as taught in many universities leads to an atomic, row-oriented, and procedural style inspired by the structured models of programming. In short, many application developers write in the relational database exactly like in the user interface. The other style of programming is holistic, data set oriented, and coded mainly in SQL. This is the style of the database developer.
The set based and holistic style of development is not promoted enough in universities, and many application developers are not fully aware of it. There are many performance issues all over the world in relational databases due to the use of the atomic and inappropriate style of programming. This book compares the two styles, and promotes the holistic style of development as the most suitable one. Examples are given to demonstrate the superiority of a set-based and holistic approach.
Compares the two styles of development
Shows the performance advantages of set-based development
Solves example problems using both approaches
Who This Book Is For
Two Styles of Database Development is aimed at application developers willing to adapt their programming styles in return for better-performing applications. It's for students and new developers wanting to position themselves as having database expertise and build a reputation for developing highly-performant database applications.
Table of contents
- Cover
- Frontmatter
- 1. The Concept of Style
- 2. SQL: Beauty and the Beast
- 3. A Holistic Vision of the Data
- 4. Data by Set or by Row?
- 5. Data Transfer Paradigm
- 6. The Challenge of Scalar Functions
- 7. Writing SQL vs. Writing Procedurally
- 8. Row Triggers and the Need for Atomic Solutions
- 9. Final Reflections and Thoughts
- Backmatter
Product information
- Title: Relational Database Programming: A Set-Oriented Approach
- Author(s):
- Release date: June 2016
- Publisher(s): Apress
- ISBN: 9781484220801
You might also like
book
Expert SQL Server™ 2005 Integration Services
As a practical guide for Integration Services ETL development, this book shows you ways to implement …
book
The New Relational Database Dictionary
No matter what DBMS you are using—Oracle, DB2, SQL Server, MySQL, PostgreSQL—misunderstandings can always arise over …
book
Joe Celko's SQL Programming Style
Are you an SQL programmer that, like many, came to SQL after learning and writing procedural …
book
Joe Celko's Thinking in Sets: Auxiliary, Temporal, and Virtual Tables in SQL
Perfectly intelligent programmers often struggle when forced to work with SQL. Why? Joe Celko believes the …