Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SQL Server on Linux

You're reading from  SQL Server on Linux

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781788291804
Pages 222 pages
Edition 1st Edition
Languages
Toc

Table of Contents (19) Chapters close

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Linux Distributions 2. Installation and Configuration 3. SQL Server Basics 4. Database in the Sandbox 5. Sample Databases 6. A Crash Course in Querying 7. Backup and Recovery Operations 8. User Management 9. Implementing Data Protection 10. Indexing 11. In-Memory OLTP 12. Beyond SQL Server

What is a heap


Imagine a library where every book is just placed in any available space. To find a particular book, you need to scan through all the bookshelves. From the database perspective, there is a structure with the same properties called a heap. A heap is the simplest table structure available in SQL Server.

A heap is a table without a clustered index. The data rows are not stored in any specific order, and there is no specific order to quickly find a particular data page. Data rows are added to the first available location within the table's pages that have sufficient space. If no space is available, additional pages are added to the table and the rows placed in those pages.

Consider using a heap for tables that:

  • Contain volatile data where rows are added, deleted, and updated frequently: The overhead of index maintenance can be costlier than the benefits
  • Contain small amounts of data: Using a table scan to find data can be quicker than maintaining and using an index
  • Contain data that...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime