Example: quiz answers

Are Indexes Unnecessary in Exadata? - Proligence …

Are Indexes Unnecessary in Exadata? Arup NandaLongtime Oracle DBA(and now DMA)DisclaimerIf you downloaded this slide deck, please note:These slides are designed merely as props to help my presentation. They are not intended to stand as independent sources of information. Therefore the contents of the slide deck are not meant to be exhaustive in any way of the content delivered at the Indexes Unnecessary in Exadata2 Are Indexes Unnecessary in Exadata3 QuotesWhy? Because there is a storage all the Indexes and reclaim don t need Indexes on Questions for Best Practices Are Indexes Unnecessary in Exadata41. Why it is better than the rest?2. What happens if it is notfollowed?3. When are they notapplicable?Are Indexes Unnecessary in Exadata5 Storage IndexInstances and Databases6 Storagedatafile1datafile2 SELECT NAMEFROM CUSTOMERSWHERE STATUS ='ANGRY'InstanceCombination of Memory Areas Background ProcessesAre Indexes Unnecessary in ExadataQuery Processing7 Storagedatafile1datafile2 SELECT NAMEFROM CUSTOMERSWHERE STATUS ='ANGRY'Database BlockJILLAre Indexes Unnecessary in ExadataAre Index

Are Indexes Unnecessary in Exadata 3 Quotes Why?Because there is a storage index. Drop all the indexes and reclaim space. You don’t need indexes on

Tags:

  Indexes, Unnecessary, Exadata, Are indexes unnecessary in exadata

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Are Indexes Unnecessary in Exadata? - Proligence …

1 Are Indexes Unnecessary in Exadata? Arup NandaLongtime Oracle DBA(and now DMA)DisclaimerIf you downloaded this slide deck, please note:These slides are designed merely as props to help my presentation. They are not intended to stand as independent sources of information. Therefore the contents of the slide deck are not meant to be exhaustive in any way of the content delivered at the Indexes Unnecessary in Exadata2 Are Indexes Unnecessary in Exadata3 QuotesWhy? Because there is a storage all the Indexes and reclaim don t need Indexes on Questions for Best Practices Are Indexes Unnecessary in Exadata41. Why it is better than the rest?2. What happens if it is notfollowed?3. When are they notapplicable?Are Indexes Unnecessary in Exadata5 Storage IndexInstances and Databases6 Storagedatafile1datafile2 SELECT NAMEFROM CUSTOMERSWHERE STATUS ='ANGRY'InstanceCombination of Memory Areas Background ProcessesAre Indexes Unnecessary in ExadataQuery Processing7 Storagedatafile1datafile2 SELECT NAMEFROM CUSTOMERSWHERE STATUS ='ANGRY'Database BlockJILLAre Indexes Unnecessary in ExadataAre Indexes Unnecessary in Exadata8 IndexTa b l eComponents for Performance9 CPUM emoryNetworkI/O ControllerDiskLess I/O = better performanceAre Indexes Unnecessary in ExadataThe Solution A typical query may.

2 Select 10% of the entire storage Use only 1% of the data it gets To gain performance, the DB needs to shed weight It has to get less from the storage Filtering at the storage level The storage must be cognizant of the data10 SELECT NAMEFROM CUSTOMERSWHERE STATUS ='ANGRY'CPUM emoryNetworkI/O ControllerDiskFiltering should be Applied HereAre Indexes Unnecessary in Exadata11 CPUM emoryNetworkI/O ControllerDiskiDBAre Indexes Unnecessary in ExadataAre Indexes Unnecessary in Exadata12 Disk1 Disk2 Disk3iDB13 Disk4 MIN = 3 MAX = 5 MIN = 4 MAX = 5 MIN = 3 MAX = 5 MIN = 1 MAX = 3 Disk1 Disk2 Disk3 Storage IndexSELECT ..FROM TABLEWHERE COL1 = 2 Are Indexes Unnecessary in ExadataStorage Indexes Do not point to the database blocks Merely stores for a Storage Unit Max/Min Values Whether nulls are present For some columns Is on Memory of Cells.

3 Not disk Disappears when the cell is downAre Indexes Unnecessary in Exadata14 Checking Storage Index Useselect name, value/1024/1024 as stat_valuefrom v$mystat s, v$statname nwhere # = #and in ('cell physical IO bytes saved by storage index','cell physical IO interconnect bytes returned by smart scan )15 Are Indexes Unnecessary in ExadataOutputSTAT_NAME STAT_VALUE---------- ----------SI Savings Scan and Smart ScanOffloadingProcessing to storage cellsSmart ScanReduction in I/OAre Indexes Unnecessary in Exadata16 Offloading Column Projectionselect cust_id, sale_amtfrom sales Predicate Filteringwhere status = ANGRY Function Offloadingselect min(sale_amt) Virtual ColumnsAre Indexes Unnecessary in Exadata17 Smart Scan Benefits Less I/O means Faster disk access time Less data from storage to DB Less buffers Less CPU Less data between compute nodesAre Indexes Unnecessary in Exadata18 Why Not?

4 Pre-requisite for Smart Scan Direct Path Full Table or Full Index Scan > 0 Predicates Simple Comparison Operators Other Reasons Cell is not offload capable The diskgroup attribute to FALSE; Not on clustered tables, IOTs, Indexes Unnecessary in ExadataImpact of Data DistributionAre Indexes Unnecessary in Exadata20 Disk4 MIN = 3 MAX = 5 MIN = 4 MAX = 5 MIN = 3 MAX = 5 MIN = 1 MAX = 2 MIN = 1 MAX = 5 MIN = 1 MAX = 5 MIN = 1 MAX = 5 MIN = 1 MAX = 5 SELECT ..FROM TABLEWHERE COL1 = 28 ColumnsAre Indexes Unnecessary in Exadata21C1C2C3C4C5C6C7C8C2C3C4C5C6C7C8C 9C3C4C5C6C7C8C9C10 TableT1No Predicate Aggregationsselect sum(sale_amt) from sales Sortingselect .. from salesorder by sale_amt;Are Indexes Unnecessary in Exadata22 Index on SALE_AMTF unction Based Indexes Traditional Indexes can t workselect.

5 From saleswhere to_char(sale_dt, YY ) = 13 Function Based Indexes help SI Indexes will not be usefulAre Indexes Unnecessary in Exadata23 IOTs Index Organized Ta b l e s PK-based rows Secondary Indexes built on the other columnsAre Indexes Unnecessary in Exadata24 PKIndexIndexClustered TablesAre Indexes Unnecessary in Exadata25 Exclusion for SIs Not for non-equality select sale_amtfrom saleswhere status != SHIPPED No Wildcardsselect sale_amtfrom saleswhere city like NEW YORK% Are Indexes Unnecessary in Exadata26 Virtual Columns Examplealter table EMP add (tot_sal number(13) generated always as sal+comm)) Implication Do not actually exists in the table Computed at runtimeAre Indexes Unnecessary in Exadata27 Indexes on Small Tables Small table Parameter _small_table_threshold Indexes still help small Less latchingAre Indexes Unnecessary in Exadata28 Summary of SI Limitations Direct Path not used No Predicate No SI No Inequality (!

6 =) 8 columns No Virtual Columns No wildcard match (LIKE ..% ) No IOT, Clustered Table Latching on small tables First-timer Penalty Only subsequent queries benefitAre Indexes Unnecessary in Exadata29 Flash Cache30 Storagedatafile1datafile2 These are flash cards presented as disks; not memory to the Storage Cells. They are similar to SAN cache; but Oracle controls what goes on there and how long it Indexes Unnecessary in Exadataalter table person storage (cell_flash_cachekeep)Flash Trick for Indexes Pin Oft-Used Objects in FlashSQL> alter index in_t2 storage (cell_flash_cache keep); Check flashCellCLI> list flashcachecontent attributes > cachedKeepSize, cachedSize, hitCount, -> hoursToExpiration, missCount -> where objectnumber = 382380; Or, partitionsAre Indexes Unnecessary in Exadata31 Drop the Index?

7 Make the Indexes invisibleSQL> alter index i1 invisible; Maintains the index; but optimizer ignores it See the performance impact. Selectively see the impactSQL> alter session set optimizer_use_invisible_indexes = true; See the performance Indexes Unnecessary in Exadata32 Disable Two parameters Could be session level To disable offloadingcell_offload_processing = false; To disable storage Indexes alone_kcfis_storageidx_disabled = true;Are Indexes Unnecessary in Exadata33In Conclusion Full table scans in exadata may be faster compared to non- exadata may not be faster than index scans in exadata may benefit from Storage Indexes Storage Indexes are not same as DB Indexes No DB Indexes helps in some cases But not all Test by making DB Indexes invisible Force FTS in those cases where index hurtsAre Indexes Unnecessary in Exadata34 Thank You!

8 Blog: | Twitter: arupnandaAre Indexes Unnecessary in Exadata35


Related search queries