hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

14
@dez_blanchfield CREATE INDEX Pindex ON People(LastName) database indexes are now a black art and not the stuff of mere mortals

Upload: dez-blanchfield

Post on 09-Jan-2017

107 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

CREATE INDEX PindexON People(LastName)

database indexes are nowa black art and not thestuff of mere mortals

Page 2: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

database performance

by throwing tin at it !!

Page 3: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Database Performance Through Big Iron

DB performance can be improved with

•High performance server hardware

•Appropriately tuned Operating Systems

•Fast multi-core multi-threading CPU’s

•Having plenty of high speed RAM

•High throughput multi-bus backplanes

•High speed caching HDD’s & Storage Arrays

•Low latency networking & interconnects

•Clustering of database infrastructure

Page 4: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

not all databases are created

equal.. there are databases,

and then there are,

“databases” !!

Page 5: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Databases: The Usual Suspects (SQL)

Page 6: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Databases: The Unusual Suspects (noSQL)

Page 7: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Databases: Beyond Super Human DBA’s

Page 8: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

database indexing for improved

performance is a standard

industry practice

Page 9: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Explain Indexing Like I’m a 3 Year Old

Page 10: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

database admins often consider

indexes to be the single most

critical tool for improving

database performance

Page 11: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Overview of Common Database Indexing• Linear “unordered” .. n

– average search time = (n+1)/2– average search time = n

• Binary “sorted” .. (n/2)+1– average search time = log2(n)-1– average search time = log2(n)

• B-Tree– most common, allows logarithmic

selections, insertions, and deletions• Bitmap

– store rowids associated with a key value as a bitmap

• Hash– large objects / blobs– deals with equality but not inequality

• Clustered & Non-Clustered• Spatial, Filtered, XML & Full Text

Page 12: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

we’ve long passed a time when

super human database admins

could manually manage database

index performance tuning

Page 13: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

Data Servers – Big Iron VS Cloud “XaaS”

Page 14: Hot tech 20161005-ep0016-idera - index insanity - how to avoid database chaos-dez-slides

@dez_blanchfield

even the world’s best dba’s need

to leverage the right tools to

deliver optimum index tuning