توضیحاتی در مورد کتاب SQL Server Query Tuning and Optimization: Optimize Microsoft SQL Server 2022 queries and applications
نام کتاب : SQL Server Query Tuning and Optimization: Optimize Microsoft SQL Server 2022 queries and applications
عنوان ترجمه شده به فارسی : تنظیم و بهینه سازی پرس و جو سرور SQL: درخواست ها و برنامه های کاربردی Microsoft SQL Server 2022 را بهینه کنید
سری :
نویسندگان : Benjamin Nevarez
ناشر : Packt Publishing
سال نشر : 2022
تعداد صفحات : 446
ISBN (شابک) : 1803242620 , 9781803242620
زبان کتاب : English
فرمت کتاب : epub درصورت درخواست کاربر به PDF تبدیل می شود
حجم کتاب : 20 Mb
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
توضیحاتی در مورد کتاب :
با تکنیکهای آماده برای ایجاد درخواستها و برنامههای کاربردی با کارایی بالا به خوبی آشنا شوید
ویژگیهای کلیدی
< ul>
سرعت پرسوجوها و بهبود چشمگیر عملکرد برنامهها با درک اجزای داخلی موتور جستجو و بهینهسازی عملی پرس و جو درک نحوه عملکرد بهینه ساز پرس و جودرباره پردازش هوشمند پرس و جو و چیزهای جدید در SQL Server 2022 بیاموزید li>شرح کتاب
SQL Server یک سیستم مدیریت پایگاه داده رابطه ای است که توسط مایکروسافت توسعه یافته است. به عنوان یک سرور پایگاه داده، این یک محصول نرم افزاری است که وظیفه اصلی آن ذخیره و بازیابی داده ها است که توسط سایر برنامه های نرم افزاری درخواست شده است.
این کتاب با تشریح عملکرد داخلی شروع می شود. بهینه ساز پرس و جو، و شما را قادر می سازد از این دانش برای نوشتن پرس و جوهای بهتر استفاده کنید و تمام اطلاعات مورد نیاز موتور پرس و جو را برای تولید برنامه های اجرایی کارآمد ارائه دهید. همانطور که پیشرفت می کنید، نکات عملی بهینه سازی پرس و جو را برای عیب یابی پرس و جوهایی با عملکرد ضعیف دریافت خواهید کرد. این کتاب همچنین شما را از طریق پردازش هوشمند پرس و جو و چیزهای جدید در SQL Server 2022 راهنمایی می کند. موضوعات عملکرد پرس و جو مانند فروشگاه Query، OLTP در حافظه و نمایه های ستون ستون نیز پوشش داده شده است.
در پایان این کتاب، میتوانید بهترین عملکرد ممکن را برای درخواستها و برنامههای کاربردی خود داشته باشید.
آنچه خواهید آموخت
- عیب یابی پرس و جوها با استفاده از روش هایی از جمله رویدادهای توسعه یافته، SQL Trace، و نماهای مدیریت پویا
- < span>درک نحوه عملکرد موتور اجرا و عملگرهای پرس و جو
- با ایجاد نمایه های مناسب، سرعت جستجوها و بهبود عملکرد برنامه را افزایش دهید span>
- با بررسی آمار بهینه ساز پرس و جو، خطاهای تخمین اصلی را شناسایی و رفع کنید
- نظارت و ارتقا هم برنامهریزی در حافظه پنهان و هم برنامهریزی استفاده مجدد برای بهبود عملکرد برنامه
- عیبیابی و بهبود عملکرد جستجو با استفاده از فروشگاه Query<. /li>
- با استفاده از نمایههای ذخیرهسازی ستون، عملکرد جستجوهای انبار داده را بهبود بخشید
- محدودیتهای پردازشگر پرس و جو را با نکات مدیریت کنید و روش های دیگر
این کتاب برای چه کسانی است
این کتاب برای SQL Server است توسعه دهندگانی که با اجرای کند پرس و جو مشکل دارند، مدیران پایگاه داده که وظیفه عیب یابی عملکرد کند برنامه را بر عهده دارند، و معماران پایگاه داده که پایگاه داده های SQL Server را برای پشتیبانی از برنامه های کاربردی خط کسب و کار و انبار داده طراحی می کنند.
< h4>فهرست مطالب- مقدمه ای بر تنظیم و بهینه سازی پرس و جو
- عیبیابی کوئریها
- بهینهساز Query
- موتور اجرا
- کار با شاخصها
- درک آمار
- در حافظه OLTP
- درک ذخیره سازی برنامه
- فروشگاه پرس و جو
- پردازش هوشمند پرس و جو
- مقدمه ای بر انبارهای داده
- درک نکات پرس و جو
فهرست مطالب :
Cover
Title Page
Copyright
Dedication
Contributors
Table of Contents
Preface
Chapter 1: An Introduction to Query Tuning and Optimization
Query Processor Architecture
Parsing and binding
Query optimization
Generating candidate execution plans
Plan cost evaluation
Query execution and plan caching
Analyzing execution plans
Graphical plans
XML plans
Text plans
Plan properties
Warnings on execution plans
Getting plans from a trace or the plan cache
sys.dm_exec_query_plan DMF
SQL Trace/Profiler
Extended events
Removing plans from the plan cache
SET STATISTICS TIME and IO statements
Summary
Chapter 2: Troubleshooting Queries
DMVs and DMFs
sys.dm_exec_requests and sys.dm_exec_sessions
Sys.dm_exec_query_stats
Understanding statement_start_offset and statement_end_offset
sql_handle and plan_handle
query_hash and plan_hash
Finding expensive queries
Blocking and waits
SQL Trace
Extended events
Mapping SQL Trace events to extended events
Working with extended events
The Data Collector
Configuration
Using the Data Collector
Querying the Data Collector tables
Summary
Chapter 3: The Query Optimizer
Query optimization research
Introduction to query processing
The sys.dm_exec_query_optimizer_info DMV
Parsing and binding
Simplification
Contradiction detection
Foreign Key Join elimination
Trivial plan optimization
Joins
Transformation rules
The Memo
Statistics
Full optimization
Search 0
Search 1
Search 2
Summary
Chapter 4: The Execution Engine
Data access operators
Scans
Seeks
Bookmark lookup
Aggregations
Sorting and hashing
Stream Aggregate
Hash Aggregate
Distinct Sort
Joins
Nested Loops Join
Merge Join
Hash Join
Parallelism
The exchange operator
Limitations
Updates
Per-row and per-index plans
Halloween protection
Summary
Chapter 5: Working with Indexes
Introduction to indexes
Creating indexes
Clustered indexes versus heaps
Clustered index key
Covering indexes
Filtered indexes
Understanding index operations
The Database Engine Tuning Advisor
Tuning a workload using the plan cache
Offload of tuning overhead to test server
Missing indexes
Index fragmentation
Unused indexes
Summary
Chapter 6: Understanding Statistics
Exploring statistics
Creating and updating statistics
Inspecting statistics objects
The density vector
Histograms
A new cardinality estimator
Trace flag 4137
Cardinality estimation errors
Incremental statistics
Statistics on computed columns
Filtered statistics
Statistics on ascending keys
Trace flag 2389
UPDATE STATISTICS with ROWCOUNT and PAGECOUNT
Statistics maintenance
Cost estimation
Summary
Chapter 7: In-Memory OLTP
In-memory OLTP architecture
Tables and indexes
Creating in-memory OLTP tables
Hash indexes
Nonclustered or range indexes
Natively compiled stored procedures
Creating natively compiled stored procedures
Inspecting DLLs
Limitations and later enhancements
Summary
Chapter 8: Understanding Plan Caching
Batch compilation and recompilation
Exploring the plan cache
How to remove plans from memory
Understanding parameterization
Autoparameterization
The Optimize for Ad Hoc Workloads option
Forced parameterization
Stored procedures
Parameter sniffing
Optimizing for a typical parameter
Optimizing on every execution
Local variables and the OPTIMIZE FOR UNKNOWN hint
Disabling parameter sniffing
Parameter sniffing and SET options affecting plan reuse
Parameter-sensitive plan optimization
Summary
Chapter 9: The Query Store
Using the Query Store
Querying the Query Store
Summary
Chapter 10: Intelligent Query Processing
Overview of intelligent query processing
Parameter-sensitive plan optimization
Memory grant feedback
Persistence and percentile
Cardinality estimation feedback
Degree of parallelism feedback
Interleaved execution
Table variable deferred compilation
Adaptive joins
Summary
Chapter 11: An Introduction to Data Warehouses
Data warehouses
Star join query optimization
Columnstore indexes
Performance benefits
Batch mode processing
Creating columnstore indexes
Hints
Summary
Chapter 12: Understanding Query Hints
Breaking down complex queries
OR logic in the WHERE clause
Joins on aggregated datasets
Hints
When to use hints
Types of hints
Joins
Aggregations
FORCE ORDER
The INDEX, FORCESCAN, and FORCESEEK hints
FAST N
The NOEXPAND and EXPAND VIEWS hints
Plan guides
USE PLAN
Summary
Index
About Packt
Other Books You May Enjoy
توضیحاتی در مورد کتاب به زبان اصلی :
Get well-versed with ready-to-use techniques for creating high-performance queries and applications
Key Features
- Speed up queries and dramatically improve application performance by both understanding query engine internals and practical query optimization
- Understand how the query optimizer works
- Learn about intelligent query processing and what is new in SQL Server 2022
Book Description
SQL Server is a relational database management system developed by Microsoft. As a database server, it is a software product with the primary function of storing and retrieving data as requested by other software applications.
This book starts by describing the inner workings of the query optimizer, and will enable you to use this knowledge to write better queries and provide the query engine with all the information it needs to produce efficient execution plans. As you progress, you'll get practical query optimization tips for troubleshooting underperforming queries. The book will also guide you through intelligent query processing and what is new in SQL Server 2022. Query performance topics such as the Query Store, In-Memory OLTP and columnstore indexes are covered as well.
By the end of this book, you'll be able to get the best possible performance for your queries and applications.
What you will learn
- Troubleshoot queries using methods including extended events, SQL Trace, and dynamic management views
- Understand how the execution engine and query operators work
- Speed up queries and improve app performance by creating the right indexes
- Detect and fix cardinality estimation errors by examining query optimizer statistics
- Monitor and promote both plan caching and plan reuse to improve app performance
- Troubleshoot and improve query performance by using the Query Store
- Improve the performance of data warehouse queries by using columnstore indexes
- Handle query processor limitations with hints and other methods
Who this book is for
This book is for SQL Server developers who are struggling with slow query execution, database administrators who are tasked with troubleshooting slow application performance, and database architects who design SQL Server databases in support of line-of-business and data warehousing applications.
Table of Contents
- An Introduction to Query Tuning and Optimization
- Troubleshooting Queries
- The Query Optimizer
- The Execution Engine
- Working with Indexes
- Understanding Statistics
- In-Memory OLTP
- Understanding Plan Caching
- The Query Store
- Intelligent Query Processing
- An Introduction to Data Warehouses
- Understanding Query Hints