The Art of SQL

封面
"O'Reilly Media, Inc.", 2006年3月10日 - 372 頁

For all the buzz about trendy IT techniques, data processing is still at the core of our systems, especially now that enterprises all over the world are confronted with exploding volumes of data. Database performance has become a major headache, and most IT departments believe that developers should provide simple SQL code to solve immediate problems and let DBAs tune any "bad SQL" later.

In The Art of SQL, author and SQL expert Stephane Faroult argues that this "safe approach" only leads to disaster. His insightful book, named after Art of War by Sun Tzu, contends that writing quick inefficient code is sweeping the dirt under the rug. SQL code may run for 5 to 10 years, surviving several major releases of the database management system and on several generations of hardware. The code must be fast and sound from the start, and that requires a firm understanding of SQL and relational theory.

The Art of SQL offers best practices that teach experienced SQL users to focus on strategy rather than specifics. Faroult's approach takes a page from Sun Tzu's classic treatise by viewing database design as a military campaign. You need knowledge, skills, and talent. Talent can't be taught, but every strategist from Sun Tzu to modern-day generals believed that it can be nurtured through the experience of others. They passed on their experience acquired in the field through basic principles that served as guiding stars amid the sound and fury of battle. This is what Faroult does with SQL.

Like a successful battle plan, good architectural choices are based on contingencies. What if the volume of this or that table increases unexpectedly? What if, following a merger, the number of users doubles? What if you want to keep several years of data online? Faroult's way of looking at SQL performance may be unconventional and unique, but he's deadly serious about writing good SQL and using SQL well. The Art of SQL is not a cookbook, listing problems and giving recipes. The aim is to get you-and your manager-to raise good questions.

 

讀者評論 - 撰寫評論

讀者評等

5 顆星
3
4 顆星
2
3 顆星
0
2 顆星
0
1 星級
0

LibraryThing Review

用戶評語  - thegreatape - LibraryThing

I got a lot out of the first half or so of this book. It did a great job helping me build a better mental model of how a database and query engine works internally, and what tradeoffs various ... 閱讀評論全文

LibraryThing Review

用戶評語  - 530nm330hz - LibraryThing

"The Art of SQL" was eye-opening. This book is for people who know SQL syntax but don't yet have a deep understanding of the implications of relational theory on how a functionally correct query can ... 閱讀評論全文

內容

Laying Plans
1
Waging War
27
Tactical Dispositions
55
Maneuvering
75
Terrain
105
The Nine Situations
127
Variations in Tactics
167
Weaknesses and Strengths
199
Multiple Fronts
225
Assembly of Forces
247
Stratagems
279
Employment of Spies
307
Photo Credits
333
Index
335
版權所有

其他版本 - 查看全部

常見字詞

熱門章節

第 13 頁 - Reports that say that something hasn't happened are always interesting to me, because as we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns— the ones we don't know...
第 32 頁 - Logic is doubtless unshakable, but it cannot withstand a man who wants to go on living. Where was the Judge whom he had never seen? Where was the High Court, to which he had never penetrated? He raised his hands and spread out all his fingers.
第 26 頁 - ... guerre est un grand drame, dans lequel mille causes morales ou physiques agissent plus ou moins fortement, et qu'on ne saurait réduire à des calculs mathématiques. Mais je dois également l'avouer sans détour, vingt ans d'expérience n'ont fait que me fortifier dans les convictions ci-après: «II existe un petit nombre de principes fondamentaux de la guerre, dont on ne saurait s'écarter sans danger, et dont l'application au contraire a été presque en tout temps couronnée par le succès....

書目資訊