Virtual techdays INDIA │ 18-20 august 2010 Developing with SQL Server Spatial & Deep Dive into Spatial Indexing Pinal Dave │ Mentor, Solid Quality Mentors.

Slides:



Advertisements
Similar presentations
Basic SQL Introduction Presented by: Madhuri Bhogadi.
Advertisements

Presentation: 20 minutes
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
4/14/ :52 PM DBI405 Troubleshooting SQL Server Spatial Query Performance: A Deep Dive into Spatial Indexing Michael Rys Principal Program Manager.
Virtual techdays INDIA │ 9-11 February 2011 virtual techdays Auditing Made Easy: Change Tracking and Change Data Capture Pinal Dave │ Technology Evangelist,
Your Data Any Place, Any Time Delivering Location Intelligence with Spatial Data.
What is Where? Lecture 5 Introduction to GISs Geography 176A Department of Geography, UCSB Summer 06, Session B.
Virtual techdays INDIA │ 9-11 February 2011 SQL 2008 Query Tuning Praveen Srivatsa │ Principal SME – StudyDesk91 │ Director, AsthraSoft Consulting │ Microsoft.
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
10. Creating and Maintaining Geographic Databases.
Overview SQL Server 2008 Overview Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP, MCTS Microsoft Web Development MCP ITIL.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
Taking Microsoft SQL Server into the World of Spatial Data Management Milan Stojic, Michael Rys Program Managers
Creating High Performance Spatial Databases with SQL Server 2008 Alastair Aitchison.
© 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011.
Taking Microsoft SQL Server into the World of Spatial Data Management Michael Rys Principal Program Manager Microsoft DBI324.
Intro to Spatial Data in SQL Server 2008 R2 Russ Burns MVT Sr. Apps Developer.
The FRAME Key Topic is about... So What? Main Idea Details _________________ Geography Introduction The study of the physical features of the earth and.
Make SQL Server to talk you! Antonios Chatzipavlis Software Architect, Development Evangelist, IT Consultant MCT, MCITP, MCPD, MCSD, MCDBA, MCSA, MCTS,
Course 2071B: Querying Microsoft ® SQL Server ™ 2000 with Transact-SQL.
M1G Introduction to Database Development 5. Doing more with queries.
Module 4 Designing and Implementing Views. Module Overview Introduction to Views Creating and Managing Views Performance Considerations for Views.
T-SQL: Simple Changes That Go a Long Way DAVE ingeniousSQL.com linkedin.com/in/ingenioussql.
Joseph Jaquish 1/10. - Spatial Data Types - Spatial Database Architectures - Geographic Information Systems 2/10.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Indexes and Views Unit 7.
Slide 1 of 19Session 13 Ver. 1.0 Querying and Managing Data Using SQL Server 2005 In this session, you will learn to: Implement stored procedures Implement.
Maciej Pilecki | Project Botticelli Ltd.. SELECT Bio FROM Speakers WHERE FullName=‘Maciej Pilecki’;  Microsoft Certified Trainer since 2001  SQL Server.
Martin Cairney Hybrid data platform – making the most of Azure plus your on- prem kit DAT341 B.
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
Connect with life Nauzad Kapadia Quartz Systems
Session 1 Module 1: Introduction to Data Integrity
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
Introduction to World Geography ©2012, TESCCC. Geography is the study of place and space: Geographers look at where things are and why they are there.
Creating Indexes on Tables An index provides quick access to data in a table, based on the values in specified columns. A table can have more than one.
Dr Greg Low Working with SQL Server Spatial Data DAT33 3.
Pinal Dave Mentor | Solid Quality India |
Virtual techdays INDIA │ august 2010 Filtered Indexes – The unexplored index … Vinod Kumar M │ Microsoft India Technology Evangelist – DB and BI.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
TSQL Worst Practices Jacob Sebastian, SQL Server MVP
SQL: Interactive Queries (2) Prof. Weining Zhang Cs.utsa.edu.
SQL Server Statistics DEMO SQL Server Statistics SREENI JULAKANTI,MCTS.MCITP,MCP. SQL SERVER Database Administration.
SQL Server Statistics DEMO SQL Server Statistics SREENI JULAKANTI,MCTS.MCITP SQL SERVER Database Administration.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Doing fast! Optimizing Query performance with ColumnStore Indexes in SQL Server 2012 Margarita Naumova | SQL Master Academy.
Session Name Pelin ATICI SQL Premier Field Engineer.
DAT319 - Building Location-Aware Applications in SQL Server 2008: Introducing the Spatial Data Type Michael Rys Principal Program Manager SQL Server Engine,
Indexes By Adrienne Watt.
Thank You! #sqlsatdnipro Denis
UFC #1433 In-Memory tables 2014 vs 2016
STEVE ENDOW, MCP, MCT, MVP Christina Phillips, mcp, mct, mvp
Parameter Sniffing in SQL Server Stored Procedures
Developing with SQL Server Spatial: Deep Dive into Spatial Indexing
Spatial Data Types And Indexing SQL Server 2008
Query Execution Expectation-Reality Denis Reznik
Statistics: What are they and How do I use them
Hidden gems of SQL Server 2016
The 5 Hidden Performance Gems
SQL Server Performance Tuning Nowadays
Transact SQL Performance Tips
Hidden Gems of SQL Server 2016
Geography Terminology
Stretch Database - Historical data storage in SQL Server 2016
The Ins and Outs of Indexes
Unit 1: Vocabulary Notes
Denis Reznik SQL Server 2017 Hidden Gems.
Why should I care about SQL, if I have ORM?
The Ins and Outs of Indexes
Denis Reznik SQL Server 2017 Hidden Gems.
Presentation transcript:

virtual techdays INDIA │ august 2010 Developing with SQL Server Spatial & Deep Dive into Spatial Indexing Pinal Dave │ Mentor, Solid Quality Mentors │ SQLAuthority.com

 Yes  No  May Be  I Don’t know! virtual techdays INDIA │ august 2010 Question to You! Is the Earth Flat?

virtual techdays INDIA │ august 2010 The Earth is Flat…

virtual techdays INDIA │ august 2010 The Earth is Flat…

virtual techdays INDIA │ august 2010 The Earth is Flat…

virtual techdays INDIA │ august 2010 …but the Earth is Sphere (almost)!

 Introduction to Spatial Database  One line definition  Planer vs Geographic  Understanding Spatial Indexing  Planer vs Geographic  Index Internals  Query Hinting  Index Maintenance  Performance Troubleshooting virtual techdays INDIA │ august 2010 Agenda Session Objectives And Key Takeaways

 SQL Server MVP  Mentor – Solid Quality Mentors India  Founder – SQLAuthority.com  Regional Mentor – Professional Association for SQL Server (PASS) Asia, Pacific & Middle East  User Group Lead – Ahmedabad SQL Server UG, Gandhinagar SQL Server UG  Author, Trainer, Speaker, Consultant  MCT, MCTS, MCP, MCDBA, MCAD   virtual techdays INDIA │ august 2010 Agenda Session Objectives And Key Takeaways

 spa·tial [spey-shuhl] –adjective 1.of or pertaining to space. 2.existing or occurring in space. 3.having extension in space.  Database that models space, objects in space, or a combination of both and provide capabilities to store and manipulate spatial data virtual techdays INDIA │ august 2010 What is Spatial? One Line Definition

 GEOMETRY data type  Infinite X and Y virtual techdays INDIA │ august 2010 SQL Server 2008 Systems Story Planar Systems  GEOGRAPHY data type  Latitude -90 to +90  Longitude 0 to 360 Geographic Systems

virtual techdays INDIA │ august 2010 DEMO: Various Datatypes DEMO: World Map

 Requires bounding box  Only one grid virtual techdays INDIA │ august 2010 SQL Server 2008 Indexing Story Planar Index  No bounding box  Two top-level projection grids Geographic Index

 4 levels  Customizable grid granularity  Three Grid Densities Per Level - Low, Medium, High  Customizable max number of cells per object virtual techdays INDIA │ august 2010 SQL Server 2008 Indexing Story Multi-Level Grid

virtual techdays INDIA │ august 2010 MAIN SLIDE TITLE Sub Slide Title / (“cell 0”) /4/2/3/1

virtual techdays INDIA │ august 2010 Tessellation Process

Create index example GEOMETRY: CREATE SPATIAL INDEX sixd ON spatial_table(geom_column) WITH ( BOUNDING_BOX = (0, 0, 500, 500), GRIDS = (LOW, LOW, MEDIUM, HIGH), CELLS_PER_OBJECT = 20) Create index example GEOGRAPHY: CREATE SPATIAL INDEX sixd ON spatial_table(geogr_column) WITH ( GRIDS = (LOW, LOW, MEDIUM, HIGH), CELLS_PER_OBJECT = 20) Use ALTER and DROP INDEX for maintenance. virtual techdays INDIA │ august 2010 Index Creation and Maintenance

virtual techdays INDIA │ august 2010 DEMO: Geometry Index DEMO: Index Analysis

 FROM T WITH (INDEX ( ))  Spatial index is treated the same way a non-clustered index is  the order of the hint is reflected in the order of the indexes in the plan  multiple index hints are concatenated  no duplicates are allowed  The following restrictions exist:  The spatial index must be either first in the first index hint or last in the last index hint for a given table.  Only one spatial index can be specified in any index hint for a given table. virtual techdays INDIA │ august 2010 Index Hints

 Make sure you are running SQL Server 2008 SP1  Check query plan for use of index  Make sure it is a supported operation  Hint the index (and/or a different join type)  Do not use a spatial index when there is a highly selective non-spatial predicate virtual techdays INDIA │ august 2010 Checklist for Performance

virtual techdays INDIA │ august 2010 RESOURCES  Michael Rys   Pinal Dave 

virtual techdays THANKS │ august 2010 │