SlideShare a Scribd company logo
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
ISUG-TECH 2015 ConferenceISUG-TECH 2015 Conference
ASE t empdb per f or mance & t uni ngASE t empdb per f or mance & t uni ng
Joe WoodhouseJoe Woodhouse
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
AgendaAgenda
Welcome
Speaker Introduction
ASE tempdb performance& tuning
Q&A
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
JoeWoodhouseJoeWoodhouse
joe.woodhouse@primadonnaconsulting.com
Worked for SybaseAustralia 1996 – 2003
Freelancer since2003
Specialisesin ASE, IQ, & RepServer
Not a lawyer
Doesn’t chargefor emailsor phonecalls
Hair changescolour every 3-4 weeks
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
Tempdb Overview
SAP Sybase ASE server-wide tuning that affects tempdb
Tempdb-specific tuning
Factors external to ASE
Tempdb SQL and per-object tuning measures
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
Tempdb Overview
• Structure & approach of this session.
• Overview of tempdb.
• Motivation for tuning tempdb specifically.
SAP Sybase ASE server-wide tuning that affects tempdb
Tempdb-specific tuning
Factors external to ASE
Tempdb SQL and per-object tuning measures
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Structure and Approach of this Session
•Most DBAs easily can think of a half-dozen or more ideas for tuning tempdb
•But we don’t usually think of the same ideas
•This presentation collects all tempdb tuning ideas (currently 64!)
•From the literature (manuals, white papers, release notes)
•From “the wild”
•From attendees of previous versions of this presentation
•Some ideas presented here are obvious
•Some are very obscure
•Prizes are available if you think of a tempdb tuning idea I missed!
•(Note prizes were handed out at three previous conferences for suggestions.)
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Overview of Tempdb
•A tempdb database (at least one) exists in every SAP Sybase ASE
•Multiple tempdb databases are possible since SAP Sybase ASE
12.5.0.3
•Commonly used for temporary tables
•Create table #temptable ...
•Create table tempdb..temptable ...
•Select … group by …
•Also used for other temporary objects
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Motivation for Tuning Tempdb Specifically
•Not unusual to see tempdb be the busiest database
•Sometimes busier than all other databases combined
•Check the I/Os per database; you might be surprised
•Tempdb is usually smaller than largest user database(s)
•Suggests opportunity for good “bang-for-the-buck” cost-benefits
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
Tempdb Overview
SAP Sybase ASE server-wide tuning that affects tempdb
• 28 ideas for tuning tempdb performance.
Tempdb-specific tuning
Factors external to ASE
Tempdb SQL and per-object tuning measures
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#1) ASE version: Upgrade to at least ASE 12.5.0.3
•Multiple tempdb databases (more on this later)
•(#2, #3, #4) ASE version: Upgrade to at least ASE 12.5.1
•Derived tables vs. temp tables (more on this later)
•Enhancements to select into
•Lazy I/O in tempdb
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#5) ASE version: Upgrade to at least ASE 15
•Directio (Not on ZFS until SAP Sybase ASE 15.0.3 ESD #2+)
•(#6, #7, #8) ASE version: Upgrade to at least ASE 15.0.2
•Row-level locked system tables
•Tempdb-specific ULC
•Asynchronous page splits
•(#9) ASE version: Upgrade to at least ASE 15.0.3
•Deferred compilation (more on this later)
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#10) ASE version: Upgrade to at least ASE 15.0.3 ESD #1
•ASE optimizer level
• 71 documented options that affect optimizer behaviour as of SAP Sybase ASE
15.7 ESD #1
•Most were introduced after ASE 15.0.3 ESD #1 and are disabled by default!
•Allows you to disable ones you don’t trust or haven’t tested
• But you miss out on many important tempdb-related ones
•Better to use “ase_current” than “ase_default”
• Can disable specific ones if required
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#11, #12, #13) ASE version: Upgrade to at least ASE 15.5
•Relaxed durability tempdb databases
•Minimal logging in tempdb
•In-memory tempdb (more on all these later)
•(#14, #15) ASE version: Upgrade to at least ASE 15.5 ESD #3
•Deferred parallel optimization...parallel query often reduced by run-time
adjustments
•Relevant to many worktables (e.g., REFORMATTING)
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#16, #17, #18) ASE version: Upgrade to at least ASE 15.7
•Row and page compression in tempdb; fewer I/Os for CPU trade-off?
•Note: premium and separately licensed option
•MERGE command!
•Used properly, could remove need entirely for many temp tables
•Text parameters to stored procedures!
•Likewise, could replace many current temp tables
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#19, #20) ASE version: Upgrade to at least ASE 15.7 ESD #2
•Precompiled result sets, CREATE/ALTER/REFRESH
•Likewise, could replace many current temp tables
•Hash-based update statistics
•No sorting required on disk, only in memory
•Sorting on disk = tempdb
•Much less tempdb space required for this version of update stats
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#21, #22, #23) ASE version: Upgrade to at least ASE 15.7 SP100
•In all previous versions, using IMDB tempdb performed sorting in IMDB
•As of SP100, update stats always uses default data cache
•sp_configure “max util parallel degree”
•Controls parallelism for update statistics and create index
•Can use to hit tempdb harder… or to be kind to it
•sp_configure “optimize temp table resolution”
•When disabled, procs that reference temp tables created elsewhere recompile with
every execution
•Disabled by default!
•In previous versions use boot-time traceflag –T299
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#24) sp_configure “number of sort buffers”
•Query-based sorting usually done in tempdb
•Stolen from procedure cache
•(#25) sp_configure “maximum buffers per lava operator” (SAP Sybase ASE
15.0+)
•Helps sorts and hashes
•Stolen from data cache
•(#26) sp_configure “user log cache size” (if SAP Sybase ASE pre-15.0)
•Even with lazy I/O, tempdb log is very busy
• ULC helps log performance
•Affects all databases server-wide
•If SAP Sybase ASE 15.0+, use another parameter instead for tempdb (discussed later)
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
28 Ideas: ASE server-wide
•(#27) Resource governor
•Limiting tempdb use is not a tuning measure specifically, but it may help prioritize and
allocate limited resources for performance
•May make things worse overall!
•(#28) Metadata cache
•Make sure “open objects” and “open indexes” are large enough
•If SAP Sybase ASE 15.0+, also “open partitions”
•Using “sp_countmetadata” will tell you
•Slightly oversize beyond what it reports
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
Tempdb Overview
SAP Sybase ASE server-wide tuning that affects tempdb
Tempdb-specific tuning
• 17 ideas for tuning tempdb performance.
Factors external to ASE
Tempdb SQL and per-object tuning measures
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#29) Nail tempdb into memory: tmpfs
•Build tempdb devices on tmpfs (platform-specific)
•Tmpfs is not true RAMdisk!
•Not preferred:
•Double buffering (O/S and SAP Sybase ASE memory)
•tmpfs is just a swap on some platforms
•Creating devices in /tmp is not the same!
•If swap space is low, your tempdb device(s) may be eaten!
•Still looks like physical I/Os to SAP Sybase ASE...implications for context switch
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#30) Nail tempdb into memory: true RAMdisk
•Build tempdb devices on ramfs (platform-specific)
•Still not preferred:
•Double buffering (O/S and SAP Sybase ASE memory)
•Avoids problems with swap scavenging, but…
•Still looks like physical I/Os to SAP Sybase ASE…implications for context switch
•(#31) Nail tempdb into memory: SAP Sybase ASE named cache
•Can work very well; can go very wrong
•Best when there is plenty of memory
• Note: don’t have to size cache to fit all of tempdb
•SAP Sybase ASE kernel knows whether there is any genuine physical I/O now
•Test carefully, monitor with “sp_sysmon” and/or MDA
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#32) Nail some of tempdb into memory: syslogs named cache
•Log caches can be very good for performance...most motivations for log caches apply
to tempdb, too
•“But you can’t bind individual system tables in tempdb!”
•Bind model..syslogs to “tempdb_log_cache”
•Will rebind tempdb..syslogs with every SAP Sybase ASE restart
•Will also bind syslogs in every new database from now on!
•(#33, #34) Reduce tempdb named cache contention and overhead
•SAP Sybase ASE cache partitioning useful for tempdb cache (SAP Sybase ASE 12.5+)
•Can also disable housekeeper per cache (SAP Sybase ASE 15+)
•Best if tempdb fits entirely in case, as checkpoints will be slower otherwise
•Edit SAP Sybase ASE <server>.CFG file
•Set cache status to “HK ignore cache”
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(*) Nail tempdb into memory: IMDB (SAP Sybase ASE 15.5+)
•Not the same as tempdb fitted entirely into named cache
•No MRU-LRU chain! No wash area! No multiple buffer pools! No asynchronous prefetch!
•Log overhead greatly reduced...if a transaction fits in ULC, it effectively doesn’t write to log
•Premium option, separately licensed
•(*) Can’t fit tempdb in memory? Relaxed durability! (SAP Sybase ASE 15.5+)
•Stored on regular devices in the regular way
•Log overhead greatly reduced...if a transaction fits in ULC, it effectively doesn’t write to log
•Cannot be done for built-in tempdb, only for additionally created tempdb databases (needs
IMDB option)
(*) already counted
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#35) Tempdb segments: remove all segments from master device
•Do not remove the fragment! Maintain a row in sysusages on master device, but with
segmap = “0”
•Tempdb devices and disks more likely to be set up for performance; master not so
much
•If using file system devices, master device will have dsync = “true” and you cannot
change this
•(#36) Tempdb segments: logically separate data and log
•Critical SAP Sybase ASE pre-11.9.2 as no ULC in tempdb otherwise
•Even SAP Sybase ASE post-11.9.2, still improves I/O streaming
•Better results from data caching if data pages not interleaved with log pages
•Note this is logical separation; can still be on same physical device(s) and disk(s)
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#37) Tempdb segments: physically separate data and log
•Tempdb log will do mostly writes
•Tempdb data will do both, but probably more reads
•Separate devices allow h/w and O/S optimizations for each
•If using a platform where f/s reads are synchronous, put tempdb data on raw and
tempdb log on file (dsync and directio both false)
•(#38) Multiple tempdb devices for data segments
•User-created temporary objects placed in default segment
•System-created worktables placed in system segment
•For both, some internal parallelism decisions are made based on the number of
devices
•You may have 20 spindles in RAID 10, but if SAP Sybase ASE only sees one
tempdb device, some parallelism is disabled
•Only some of this can be overridden
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(*) Multiple tempdb databases (ASE 12.5.0.3+)
•Multiple tempdb system tables (useful even with ASE 15.0.2+)
•Multiple tempdb logs!
•Separate users and applications into specifically optimized tempdbs
•OLTP vs. reporting vs. batch?
•Reserve one for DBAs?
•Very useful with IMDB tempdbs
•User-defined tempdb groups now possible in ASE 15.5
(*) already counted
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#39) sp_configure “session tempdb log cache size” (ASE 15+)
•ULC just for tempdb
•Can set very large without implications for user databases
•(#40) Tempdb device attributes
•dsync = “false” (always!)
•directio = “false” (probably – test and time this)
•(#41) Tempdb logging: delayed commit db option (ASE 15+)
•Return when log write starts, don’t wait until it completes
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
17 Ideas: tempdb-specific
•(#42) Tempdb logging: enable minimal logging (SAP Sybase ASE 15.5+)
•Try to avoid flushing log records to transaction log
•Needs IMDB or RDDB
•(#43) Tempdb logging: sp_logiosize
•Set to size of 8 SAP Sybase ASE pages
•(#44) dbcc tune (deviochar, […])
•If special h/w has been used for tempdb (i.e., SSD), effectively increases I/O batch size
for that device
•(#45) CIS proxy tables: relocated joins (SAP Sybase ASE 15.0.2+)
•CIS proxy tables to another SAP Sybase ASE
•If both are SAP Sybase ASE version 15.0.2+, significantly fewer tempdb I/
Os
•Set with “sp_serveroption”
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
Tempdb Overview
ASE server-wide tuning that affects tempdb
Tempdb-specific tuning
Factors external to ASE
•6 ideas for tuning tempdb performance
Tempdb SQL and per-object tuning measures
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
6 Ideas: External to ASE
•(#46) Disk hardware type and speed
•RAMdisk > tmpfs > SSD > “tier one” storage (even if not otherwise a tier-one app)
•(#47) Disk location
•Co-location; separate LUNs
•Consider local disk for tempdb rather than SAN
•(#48) Disk partition type: file system vs. raw partition
•Raw partition vs. file system
•Synchronous vs. asynchronous reads
•Raw partition on ZFS only supported in SAP Sybase ASE 15.0.3 ESD #2+
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
6 Ideas: External to ASE
•(#49) O/S tuning for I/O on tempdb LUNs
•Very platform-dependent
•Talk to your sysadmins
•Examples: I/O fencing; SAN controller cache; file system mount options; O/S polling for
completed I/Os
•(#50) Disable SAN replication and snapshots for tempdb disks
•No recoverability requirement for tempdb
•Note: there is an availability requirement!
•(#51) Appropriate RAID for tempdb disks
•RAID 10 > RAID 0+1 > RAID 5 > RAID 0 > RAID 1 > JBOD
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
Agenda
Tempdb Overview
ASE server-wide tuning that affects tempdb
Tempdb-specific tuning
Factors external to ASE
Tempdb SQL and per-object tuning measures
•13 ideas for tuning tempdb performance
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
13 Ideas: SQL and object-specific
•(#52) Work less: set-based SQL
•Avoid row-based logic (cursors, WHILE loops)
•(#53) Work less: temp table rows and columns
•Only write rows into tempdb if you will use them more than once
•May be an argument for avoiding locking in base tables
•Only write columns into tempdb if you will use them at all
•(#54) Work less: truncate temp tables before drop
•There is an implicit drop temp table at the end of its session context (connection or
procedure)
•Good practice – explicitly truncate tables before they are dropped
•SAP Sybase ASE does this for you in all modern versions, but arguably good practice
regardless
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
13 Ideas: SQL and object-specific
•(#55) Work less: multiple inserts to same temp table
•Worst: create table, insert […] select, insert […] select
•Still bad: select into, insert […] select
•Better: select into […] union select
•(#56) Work less: use select into, not create table
•Myth 1: “select into holds locks on system tables” BUSTED!
•Myth 2: “needed so procedures know about #tables” BUSTED!
•(#57) Work less: derived tables (SAP Sybase ASE 12.5.1+)
•If using temp rows only once, why use temp table at all?
•Consider a view or derived tables
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
13 Ideas: SQL and object-specific
•(#58) Work smarter: create indexes on temp tables
•Obvious but often overlooked
•All normal rules and tuning measures apply
•“But SAP Sybase ASE won’t know about these indexes!”
•Hold that thought…
•(#59) “But the optimiser doesn’t know…”
•Workaround 1: create proc…with recompile
•Workaround 2: exec proc…with recompile
•Workaround 3: update (index) statistics #temptable
•Workaround 4: create in parent proc, call in sub-proc
•Workaround 5: delayed compilation (SAP Sybase ASE 15.0.3+)
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
13 Ideas: SQL and object-specific
•(#60) Global shareable temp tables
•Uses spid as leading column in PK, locked datarows
•Users only see rows where spid = “@@spid”
•Enforced in SQL or FGAC logic
•(#61) Temp table isolation levels
•Not needed for #tables!
•For any shareable temp tables, use the least restrictive isolation level required by
business rules
•Don’t forget “readpast” locking – perfect for queues!
(c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015
13 Ideas: SQL and object-specific
•(#62) Temp table locking schemes
•Also relevant only for shareable temp tables
•(#63) Temp table partitions (SAP Sybase ASE 15.0+)
•select […] into […] partition […]
•May still be useful for private #temp tables – parallel query
•(#64) Set exp_row_size on DOL temp tables
•Can make significant different to size and hence I/Os!
•(*) Compressed temp tables (SAP ASE 15.5+)
•Permanent shareable tables only, not #temp tables
•Requires separate (paid) license
•Fewer I/Os (maybe more CPU use)
(*) already counted
Annual Conference, 2015 (c) 2015 Independent SAP Technical User Group
QuestionsandAnswersQuestionsandAnswers
Annual Conference, 2015 (c) 2015 Independent SAP Technical User Group
Thank You for AttendingThank You for Attending
Pleasecompleteyour session feedbackPleasecompleteyour session feedback
formform
Ad

More Related Content

What's hot (20)

Ceph Object Storage Reference Architecture Performance and Sizing Guide
Ceph Object Storage Reference Architecture Performance and Sizing GuideCeph Object Storage Reference Architecture Performance and Sizing Guide
Ceph Object Storage Reference Architecture Performance and Sizing Guide
Karan Singh
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
Suresh Kumar
 
Infrastructure automation using awx ansible tower
Infrastructure automation using awx ansible towerInfrastructure automation using awx ansible tower
Infrastructure automation using awx ansible tower
TO THE NEW Pvt. Ltd.
 
Red Hat Satellite
Red Hat SatelliteRed Hat Satellite
Red Hat Satellite
Katsutoshi Kojima
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Osama Mustafa
 
Ansible
AnsibleAnsible
Ansible
Knoldus Inc.
 
Ceph scale testing with 10 Billion Objects
Ceph scale testing with 10 Billion ObjectsCeph scale testing with 10 Billion Objects
Ceph scale testing with 10 Billion Objects
Karan Singh
 
SAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance FeaturesSAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance Features
SAP Technology
 
Ceph Performance and Sizing Guide
Ceph Performance and Sizing GuideCeph Performance and Sizing Guide
Ceph Performance and Sizing Guide
Jose De La Rosa
 
Oracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningOracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuning
Michel Schildmeijer
 
Planning for Disaster Recovery (DR) with Galera Cluster
Planning for Disaster Recovery (DR) with Galera ClusterPlanning for Disaster Recovery (DR) with Galera Cluster
Planning for Disaster Recovery (DR) with Galera Cluster
Codership Oy - Creators of Galera Cluster
 
Time-Series Apache HBase
Time-Series Apache HBaseTime-Series Apache HBase
Time-Series Apache HBase
HBaseCon
 
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Sean Cohen
 
Apache Flink and Apache Hudi.pdf
Apache Flink and Apache Hudi.pdfApache Flink and Apache Hudi.pdf
Apache Flink and Apache Hudi.pdf
dogma28
 
Oracle Database Availability & Scalability Across Versions & Editions
Oracle Database Availability & Scalability Across Versions & EditionsOracle Database Availability & Scalability Across Versions & Editions
Oracle Database Availability & Scalability Across Versions & Editions
Markus Michalewicz
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
Knoldus Inc.
 
Migrating and Running DBs on Amazon RDS for Oracle
Migrating and Running DBs on Amazon RDS for OracleMigrating and Running DBs on Amazon RDS for Oracle
Migrating and Running DBs on Amazon RDS for Oracle
Maris Elsins
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDS
Mydbops
 
Ceph Block Devices: A Deep Dive
Ceph Block Devices:  A Deep DiveCeph Block Devices:  A Deep Dive
Ceph Block Devices: A Deep Dive
Red_Hat_Storage
 
Using galera replication to create geo distributed clusters on the wan
Using galera replication to create geo distributed clusters on the wanUsing galera replication to create geo distributed clusters on the wan
Using galera replication to create geo distributed clusters on the wan
Codership Oy - Creators of Galera Cluster
 
Ceph Object Storage Reference Architecture Performance and Sizing Guide
Ceph Object Storage Reference Architecture Performance and Sizing GuideCeph Object Storage Reference Architecture Performance and Sizing Guide
Ceph Object Storage Reference Architecture Performance and Sizing Guide
Karan Singh
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
Suresh Kumar
 
Infrastructure automation using awx ansible tower
Infrastructure automation using awx ansible towerInfrastructure automation using awx ansible tower
Infrastructure automation using awx ansible tower
TO THE NEW Pvt. Ltd.
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Osama Mustafa
 
Ceph scale testing with 10 Billion Objects
Ceph scale testing with 10 Billion ObjectsCeph scale testing with 10 Billion Objects
Ceph scale testing with 10 Billion Objects
Karan Singh
 
SAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance FeaturesSAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance Features
SAP Technology
 
Ceph Performance and Sizing Guide
Ceph Performance and Sizing GuideCeph Performance and Sizing Guide
Ceph Performance and Sizing Guide
Jose De La Rosa
 
Oracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningOracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuning
Michel Schildmeijer
 
Time-Series Apache HBase
Time-Series Apache HBaseTime-Series Apache HBase
Time-Series Apache HBase
HBaseCon
 
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Sean Cohen
 
Apache Flink and Apache Hudi.pdf
Apache Flink and Apache Hudi.pdfApache Flink and Apache Hudi.pdf
Apache Flink and Apache Hudi.pdf
dogma28
 
Oracle Database Availability & Scalability Across Versions & Editions
Oracle Database Availability & Scalability Across Versions & EditionsOracle Database Availability & Scalability Across Versions & Editions
Oracle Database Availability & Scalability Across Versions & Editions
Markus Michalewicz
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
Knoldus Inc.
 
Migrating and Running DBs on Amazon RDS for Oracle
Migrating and Running DBs on Amazon RDS for OracleMigrating and Running DBs on Amazon RDS for Oracle
Migrating and Running DBs on Amazon RDS for Oracle
Maris Elsins
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDS
Mydbops
 
Ceph Block Devices: A Deep Dive
Ceph Block Devices:  A Deep DiveCeph Block Devices:  A Deep Dive
Ceph Block Devices: A Deep Dive
Red_Hat_Storage
 

Viewers also liked (14)

Advanced ASE Performance Tuning Tips
Advanced ASE Performance Tuning Tips Advanced ASE Performance Tuning Tips
Advanced ASE Performance Tuning Tips
SAP Technology
 
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
Storage Optimization and Operational Simplicity in SAP  Adaptive Server Enter...Storage Optimization and Operational Simplicity in SAP  Adaptive Server Enter...
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
SAP Technology
 
ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study
SAP Technology
 
Leveraging SAP ASE Workload Analyzer to optimize your database environment
Leveraging SAP ASE Workload Analyzer to optimize your database environmentLeveraging SAP ASE Workload Analyzer to optimize your database environment
Leveraging SAP ASE Workload Analyzer to optimize your database environment
SAP Technology
 
Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130
SAP Technology
 
How To Be a Great DBA
How To Be a Great DBAHow To Be a Great DBA
How To Be a Great DBA
SAP Technology
 
Git migration - Lessons learned
Git migration - Lessons learnedGit migration - Lessons learned
Git migration - Lessons learned
Tomasz Zarna
 
The Science of DBMS: Query Optimization
The Science of DBMS: Query Optimization The Science of DBMS: Query Optimization
The Science of DBMS: Query Optimization
SAP Technology
 
Sybase ASE 15.7- Two Case Studies of Successful Migration
Sybase ASE 15.7- Two Case Studies of Successful Migration Sybase ASE 15.7- Two Case Studies of Successful Migration
Sybase ASE 15.7- Two Case Studies of Successful Migration
SAP Technology
 
Sap replication server
Sap replication serverSap replication server
Sap replication server
Cristina Esquivel
 
What's New in SAP Replication Server 15.7.1 SP100
What's New in SAP Replication Server 15.7.1 SP100What's New in SAP Replication Server 15.7.1 SP100
What's New in SAP Replication Server 15.7.1 SP100
Dobler Consulting
 
Choosing Indexes For Performance
Choosing Indexes For PerformanceChoosing Indexes For Performance
Choosing Indexes For Performance
SAP Technology
 
Tips and Tricks for SAP Sybase IQ
Tips and Tricks for SAP  Sybase IQTips and Tricks for SAP  Sybase IQ
Tips and Tricks for SAP Sybase IQ
Don Brizendine
 
Hadoop MapReduce Fundamentals
Hadoop MapReduce FundamentalsHadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
Lynn Langit
 
Advanced ASE Performance Tuning Tips
Advanced ASE Performance Tuning Tips Advanced ASE Performance Tuning Tips
Advanced ASE Performance Tuning Tips
SAP Technology
 
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
Storage Optimization and Operational Simplicity in SAP  Adaptive Server Enter...Storage Optimization and Operational Simplicity in SAP  Adaptive Server Enter...
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
SAP Technology
 
ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study
SAP Technology
 
Leveraging SAP ASE Workload Analyzer to optimize your database environment
Leveraging SAP ASE Workload Analyzer to optimize your database environmentLeveraging SAP ASE Workload Analyzer to optimize your database environment
Leveraging SAP ASE Workload Analyzer to optimize your database environment
SAP Technology
 
Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130
SAP Technology
 
Git migration - Lessons learned
Git migration - Lessons learnedGit migration - Lessons learned
Git migration - Lessons learned
Tomasz Zarna
 
The Science of DBMS: Query Optimization
The Science of DBMS: Query Optimization The Science of DBMS: Query Optimization
The Science of DBMS: Query Optimization
SAP Technology
 
Sybase ASE 15.7- Two Case Studies of Successful Migration
Sybase ASE 15.7- Two Case Studies of Successful Migration Sybase ASE 15.7- Two Case Studies of Successful Migration
Sybase ASE 15.7- Two Case Studies of Successful Migration
SAP Technology
 
What's New in SAP Replication Server 15.7.1 SP100
What's New in SAP Replication Server 15.7.1 SP100What's New in SAP Replication Server 15.7.1 SP100
What's New in SAP Replication Server 15.7.1 SP100
Dobler Consulting
 
Choosing Indexes For Performance
Choosing Indexes For PerformanceChoosing Indexes For Performance
Choosing Indexes For Performance
SAP Technology
 
Tips and Tricks for SAP Sybase IQ
Tips and Tricks for SAP  Sybase IQTips and Tricks for SAP  Sybase IQ
Tips and Tricks for SAP Sybase IQ
Don Brizendine
 
Hadoop MapReduce Fundamentals
Hadoop MapReduce FundamentalsHadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
Lynn Langit
 
Ad

Similar to ASE Tempdb Performance and Tuning (20)

Maximizing Database Tuning in SAP SQL Anywhere
Maximizing Database Tuning in SAP SQL AnywhereMaximizing Database Tuning in SAP SQL Anywhere
Maximizing Database Tuning in SAP SQL Anywhere
SAP Technology
 
In-memory ColumnStore Index
In-memory ColumnStore IndexIn-memory ColumnStore Index
In-memory ColumnStore Index
SolidQ
 
Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019
Antonios Chatzipavlis
 
An In-Depth Look at SAP SQL Anywhere Performance Features
An In-Depth Look at SAP SQL Anywhere Performance FeaturesAn In-Depth Look at SAP SQL Anywhere Performance Features
An In-Depth Look at SAP SQL Anywhere Performance Features
SAP Technology
 
Healthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkHealthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache Spark
Databricks
 
SAP ASE Migration Lessons Learned
SAP ASE Migration Lessons LearnedSAP ASE Migration Lessons Learned
SAP ASE Migration Lessons Learned
Aliter Consulting
 
SAP ASE Migration Lessons Learned
SAP ASE Migration Lessons LearnedSAP ASE Migration Lessons Learned
SAP ASE Migration Lessons Learned
Gary Jackson MBCS
 
Sap on azure airlift architecture (2)
Sap on azure airlift architecture (2)Sap on azure airlift architecture (2)
Sap on azure airlift architecture (2)
Rahim Abdul Kader
 
Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7
MarketingArrowECS_CZ
 
SAP ASE In The Cloud
SAP ASE In The Cloud SAP ASE In The Cloud
SAP ASE In The Cloud
SAP Technology
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs Faster
Bob Ward
 
Low Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache ApexLow Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache Apex
Apache Apex
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1
Ivan Ma
 
Dynamics ax performance tuning
Dynamics ax performance tuningDynamics ax performance tuning
Dynamics ax performance tuning
OutsourceAX
 
Performance and Scalability
Performance and ScalabilityPerformance and Scalability
Performance and Scalability
Mediacurrent
 
Using sap-netweaver-with-dbim-2594359
Using sap-netweaver-with-dbim-2594359Using sap-netweaver-with-dbim-2594359
Using sap-netweaver-with-dbim-2594359
Mohsen B
 
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
Insight Technology, Inc.
 
VMUGIT UC 2013 - 04 Duncan Epping
VMUGIT UC 2013 - 04 Duncan EppingVMUGIT UC 2013 - 04 Duncan Epping
VMUGIT UC 2013 - 04 Duncan Epping
VMUG IT
 
Directions NA Choosing the best possible Azure platform for NAV
Directions NA Choosing the best possible Azure platform for NAVDirections NA Choosing the best possible Azure platform for NAV
Directions NA Choosing the best possible Azure platform for NAV
Aleksandar Totovic
 
Speed up R with parallel programming in the Cloud
Speed up R with parallel programming in the CloudSpeed up R with parallel programming in the Cloud
Speed up R with parallel programming in the Cloud
Revolution Analytics
 
Maximizing Database Tuning in SAP SQL Anywhere
Maximizing Database Tuning in SAP SQL AnywhereMaximizing Database Tuning in SAP SQL Anywhere
Maximizing Database Tuning in SAP SQL Anywhere
SAP Technology
 
In-memory ColumnStore Index
In-memory ColumnStore IndexIn-memory ColumnStore Index
In-memory ColumnStore Index
SolidQ
 
Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019
Antonios Chatzipavlis
 
An In-Depth Look at SAP SQL Anywhere Performance Features
An In-Depth Look at SAP SQL Anywhere Performance FeaturesAn In-Depth Look at SAP SQL Anywhere Performance Features
An In-Depth Look at SAP SQL Anywhere Performance Features
SAP Technology
 
Healthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkHealthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache Spark
Databricks
 
SAP ASE Migration Lessons Learned
SAP ASE Migration Lessons LearnedSAP ASE Migration Lessons Learned
SAP ASE Migration Lessons Learned
Aliter Consulting
 
SAP ASE Migration Lessons Learned
SAP ASE Migration Lessons LearnedSAP ASE Migration Lessons Learned
SAP ASE Migration Lessons Learned
Gary Jackson MBCS
 
Sap on azure airlift architecture (2)
Sap on azure airlift architecture (2)Sap on azure airlift architecture (2)
Sap on azure airlift architecture (2)
Rahim Abdul Kader
 
Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7
MarketingArrowECS_CZ
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs Faster
Bob Ward
 
Low Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache ApexLow Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache Apex
Apache Apex
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1
Ivan Ma
 
Dynamics ax performance tuning
Dynamics ax performance tuningDynamics ax performance tuning
Dynamics ax performance tuning
OutsourceAX
 
Performance and Scalability
Performance and ScalabilityPerformance and Scalability
Performance and Scalability
Mediacurrent
 
Using sap-netweaver-with-dbim-2594359
Using sap-netweaver-with-dbim-2594359Using sap-netweaver-with-dbim-2594359
Using sap-netweaver-with-dbim-2594359
Mohsen B
 
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
Insight Technology, Inc.
 
VMUGIT UC 2013 - 04 Duncan Epping
VMUGIT UC 2013 - 04 Duncan EppingVMUGIT UC 2013 - 04 Duncan Epping
VMUGIT UC 2013 - 04 Duncan Epping
VMUG IT
 
Directions NA Choosing the best possible Azure platform for NAV
Directions NA Choosing the best possible Azure platform for NAVDirections NA Choosing the best possible Azure platform for NAV
Directions NA Choosing the best possible Azure platform for NAV
Aleksandar Totovic
 
Speed up R with parallel programming in the Cloud
Speed up R with parallel programming in the CloudSpeed up R with parallel programming in the Cloud
Speed up R with parallel programming in the Cloud
Revolution Analytics
 
Ad

More from SAP Technology (20)

SAP Integration Suite L1
SAP Integration Suite L1SAP Integration Suite L1
SAP Integration Suite L1
SAP Technology
 
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
SAP Technology
 
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
SAP Technology
 
Extend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processesExtend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processes
SAP Technology
 
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
SAP Technology
 
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology PlatformAccelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
SAP Technology
 
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
SAP Technology
 
Transform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANATransform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANA
SAP Technology
 
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Technology
 
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
SAP Technology
 
The IoT Imperative for Consumer Products
The IoT Imperative for Consumer ProductsThe IoT Imperative for Consumer Products
The IoT Imperative for Consumer Products
SAP Technology
 
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
SAP Technology
 
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
SAP Technology
 
The IoT Imperative in Government and Healthcare
The IoT Imperative in Government and HealthcareThe IoT Imperative in Government and Healthcare
The IoT Imperative in Government and Healthcare
SAP Technology
 
SAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital CoreSAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital Core
SAP Technology
 
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANAFive Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
SAP Technology
 
SAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial DataSAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial Data
SAP Technology
 
Why SAP HANA?
Why SAP HANA?Why SAP HANA?
Why SAP HANA?
SAP Technology
 
Spotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASESpotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASE
SAP Technology
 
Spark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business OperationsSpark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business Operations
SAP Technology
 
SAP Integration Suite L1
SAP Integration Suite L1SAP Integration Suite L1
SAP Integration Suite L1
SAP Technology
 
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
SAP Technology
 
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
SAP Technology
 
Extend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processesExtend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processes
SAP Technology
 
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
SAP Technology
 
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology PlatformAccelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
SAP Technology
 
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
SAP Technology
 
Transform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANATransform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANA
SAP Technology
 
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Technology
 
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
SAP Technology
 
The IoT Imperative for Consumer Products
The IoT Imperative for Consumer ProductsThe IoT Imperative for Consumer Products
The IoT Imperative for Consumer Products
SAP Technology
 
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
SAP Technology
 
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
SAP Technology
 
The IoT Imperative in Government and Healthcare
The IoT Imperative in Government and HealthcareThe IoT Imperative in Government and Healthcare
The IoT Imperative in Government and Healthcare
SAP Technology
 
SAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital CoreSAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital Core
SAP Technology
 
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANAFive Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
SAP Technology
 
SAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial DataSAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial Data
SAP Technology
 
Spotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASESpotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASE
SAP Technology
 
Spark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business OperationsSpark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business Operations
SAP Technology
 

Recently uploaded (20)

Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 

ASE Tempdb Performance and Tuning

  • 1. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 ISUG-TECH 2015 ConferenceISUG-TECH 2015 Conference ASE t empdb per f or mance & t uni ngASE t empdb per f or mance & t uni ng Joe WoodhouseJoe Woodhouse
  • 2. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 AgendaAgenda Welcome Speaker Introduction ASE tempdb performance& tuning Q&A
  • 3. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 JoeWoodhouseJoeWoodhouse [email protected] Worked for SybaseAustralia 1996 – 2003 Freelancer since2003 Specialisesin ASE, IQ, & RepServer Not a lawyer Doesn’t chargefor emailsor phonecalls Hair changescolour every 3-4 weeks
  • 4. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Agenda Tempdb Overview SAP Sybase ASE server-wide tuning that affects tempdb Tempdb-specific tuning Factors external to ASE Tempdb SQL and per-object tuning measures
  • 5. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Agenda Tempdb Overview • Structure & approach of this session. • Overview of tempdb. • Motivation for tuning tempdb specifically. SAP Sybase ASE server-wide tuning that affects tempdb Tempdb-specific tuning Factors external to ASE Tempdb SQL and per-object tuning measures
  • 6. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Structure and Approach of this Session •Most DBAs easily can think of a half-dozen or more ideas for tuning tempdb •But we don’t usually think of the same ideas •This presentation collects all tempdb tuning ideas (currently 64!) •From the literature (manuals, white papers, release notes) •From “the wild” •From attendees of previous versions of this presentation •Some ideas presented here are obvious •Some are very obscure •Prizes are available if you think of a tempdb tuning idea I missed! •(Note prizes were handed out at three previous conferences for suggestions.)
  • 7. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Overview of Tempdb •A tempdb database (at least one) exists in every SAP Sybase ASE •Multiple tempdb databases are possible since SAP Sybase ASE 12.5.0.3 •Commonly used for temporary tables •Create table #temptable ... •Create table tempdb..temptable ... •Select … group by … •Also used for other temporary objects
  • 8. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Motivation for Tuning Tempdb Specifically •Not unusual to see tempdb be the busiest database •Sometimes busier than all other databases combined •Check the I/Os per database; you might be surprised •Tempdb is usually smaller than largest user database(s) •Suggests opportunity for good “bang-for-the-buck” cost-benefits
  • 9. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Agenda Tempdb Overview SAP Sybase ASE server-wide tuning that affects tempdb • 28 ideas for tuning tempdb performance. Tempdb-specific tuning Factors external to ASE Tempdb SQL and per-object tuning measures
  • 10. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#1) ASE version: Upgrade to at least ASE 12.5.0.3 •Multiple tempdb databases (more on this later) •(#2, #3, #4) ASE version: Upgrade to at least ASE 12.5.1 •Derived tables vs. temp tables (more on this later) •Enhancements to select into •Lazy I/O in tempdb
  • 11. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#5) ASE version: Upgrade to at least ASE 15 •Directio (Not on ZFS until SAP Sybase ASE 15.0.3 ESD #2+) •(#6, #7, #8) ASE version: Upgrade to at least ASE 15.0.2 •Row-level locked system tables •Tempdb-specific ULC •Asynchronous page splits •(#9) ASE version: Upgrade to at least ASE 15.0.3 •Deferred compilation (more on this later)
  • 12. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#10) ASE version: Upgrade to at least ASE 15.0.3 ESD #1 •ASE optimizer level • 71 documented options that affect optimizer behaviour as of SAP Sybase ASE 15.7 ESD #1 •Most were introduced after ASE 15.0.3 ESD #1 and are disabled by default! •Allows you to disable ones you don’t trust or haven’t tested • But you miss out on many important tempdb-related ones •Better to use “ase_current” than “ase_default” • Can disable specific ones if required
  • 13. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#11, #12, #13) ASE version: Upgrade to at least ASE 15.5 •Relaxed durability tempdb databases •Minimal logging in tempdb •In-memory tempdb (more on all these later) •(#14, #15) ASE version: Upgrade to at least ASE 15.5 ESD #3 •Deferred parallel optimization...parallel query often reduced by run-time adjustments •Relevant to many worktables (e.g., REFORMATTING)
  • 14. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#16, #17, #18) ASE version: Upgrade to at least ASE 15.7 •Row and page compression in tempdb; fewer I/Os for CPU trade-off? •Note: premium and separately licensed option •MERGE command! •Used properly, could remove need entirely for many temp tables •Text parameters to stored procedures! •Likewise, could replace many current temp tables
  • 15. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#19, #20) ASE version: Upgrade to at least ASE 15.7 ESD #2 •Precompiled result sets, CREATE/ALTER/REFRESH •Likewise, could replace many current temp tables •Hash-based update statistics •No sorting required on disk, only in memory •Sorting on disk = tempdb •Much less tempdb space required for this version of update stats
  • 16. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#21, #22, #23) ASE version: Upgrade to at least ASE 15.7 SP100 •In all previous versions, using IMDB tempdb performed sorting in IMDB •As of SP100, update stats always uses default data cache •sp_configure “max util parallel degree” •Controls parallelism for update statistics and create index •Can use to hit tempdb harder… or to be kind to it •sp_configure “optimize temp table resolution” •When disabled, procs that reference temp tables created elsewhere recompile with every execution •Disabled by default! •In previous versions use boot-time traceflag –T299
  • 17. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#24) sp_configure “number of sort buffers” •Query-based sorting usually done in tempdb •Stolen from procedure cache •(#25) sp_configure “maximum buffers per lava operator” (SAP Sybase ASE 15.0+) •Helps sorts and hashes •Stolen from data cache •(#26) sp_configure “user log cache size” (if SAP Sybase ASE pre-15.0) •Even with lazy I/O, tempdb log is very busy • ULC helps log performance •Affects all databases server-wide •If SAP Sybase ASE 15.0+, use another parameter instead for tempdb (discussed later)
  • 18. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 28 Ideas: ASE server-wide •(#27) Resource governor •Limiting tempdb use is not a tuning measure specifically, but it may help prioritize and allocate limited resources for performance •May make things worse overall! •(#28) Metadata cache •Make sure “open objects” and “open indexes” are large enough •If SAP Sybase ASE 15.0+, also “open partitions” •Using “sp_countmetadata” will tell you •Slightly oversize beyond what it reports
  • 19. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Agenda Tempdb Overview SAP Sybase ASE server-wide tuning that affects tempdb Tempdb-specific tuning • 17 ideas for tuning tempdb performance. Factors external to ASE Tempdb SQL and per-object tuning measures
  • 20. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#29) Nail tempdb into memory: tmpfs •Build tempdb devices on tmpfs (platform-specific) •Tmpfs is not true RAMdisk! •Not preferred: •Double buffering (O/S and SAP Sybase ASE memory) •tmpfs is just a swap on some platforms •Creating devices in /tmp is not the same! •If swap space is low, your tempdb device(s) may be eaten! •Still looks like physical I/Os to SAP Sybase ASE...implications for context switch
  • 21. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#30) Nail tempdb into memory: true RAMdisk •Build tempdb devices on ramfs (platform-specific) •Still not preferred: •Double buffering (O/S and SAP Sybase ASE memory) •Avoids problems with swap scavenging, but… •Still looks like physical I/Os to SAP Sybase ASE…implications for context switch •(#31) Nail tempdb into memory: SAP Sybase ASE named cache •Can work very well; can go very wrong •Best when there is plenty of memory • Note: don’t have to size cache to fit all of tempdb •SAP Sybase ASE kernel knows whether there is any genuine physical I/O now •Test carefully, monitor with “sp_sysmon” and/or MDA
  • 22. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#32) Nail some of tempdb into memory: syslogs named cache •Log caches can be very good for performance...most motivations for log caches apply to tempdb, too •“But you can’t bind individual system tables in tempdb!” •Bind model..syslogs to “tempdb_log_cache” •Will rebind tempdb..syslogs with every SAP Sybase ASE restart •Will also bind syslogs in every new database from now on! •(#33, #34) Reduce tempdb named cache contention and overhead •SAP Sybase ASE cache partitioning useful for tempdb cache (SAP Sybase ASE 12.5+) •Can also disable housekeeper per cache (SAP Sybase ASE 15+) •Best if tempdb fits entirely in case, as checkpoints will be slower otherwise •Edit SAP Sybase ASE <server>.CFG file •Set cache status to “HK ignore cache”
  • 23. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(*) Nail tempdb into memory: IMDB (SAP Sybase ASE 15.5+) •Not the same as tempdb fitted entirely into named cache •No MRU-LRU chain! No wash area! No multiple buffer pools! No asynchronous prefetch! •Log overhead greatly reduced...if a transaction fits in ULC, it effectively doesn’t write to log •Premium option, separately licensed •(*) Can’t fit tempdb in memory? Relaxed durability! (SAP Sybase ASE 15.5+) •Stored on regular devices in the regular way •Log overhead greatly reduced...if a transaction fits in ULC, it effectively doesn’t write to log •Cannot be done for built-in tempdb, only for additionally created tempdb databases (needs IMDB option) (*) already counted
  • 24. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#35) Tempdb segments: remove all segments from master device •Do not remove the fragment! Maintain a row in sysusages on master device, but with segmap = “0” •Tempdb devices and disks more likely to be set up for performance; master not so much •If using file system devices, master device will have dsync = “true” and you cannot change this •(#36) Tempdb segments: logically separate data and log •Critical SAP Sybase ASE pre-11.9.2 as no ULC in tempdb otherwise •Even SAP Sybase ASE post-11.9.2, still improves I/O streaming •Better results from data caching if data pages not interleaved with log pages •Note this is logical separation; can still be on same physical device(s) and disk(s)
  • 25. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#37) Tempdb segments: physically separate data and log •Tempdb log will do mostly writes •Tempdb data will do both, but probably more reads •Separate devices allow h/w and O/S optimizations for each •If using a platform where f/s reads are synchronous, put tempdb data on raw and tempdb log on file (dsync and directio both false) •(#38) Multiple tempdb devices for data segments •User-created temporary objects placed in default segment •System-created worktables placed in system segment •For both, some internal parallelism decisions are made based on the number of devices •You may have 20 spindles in RAID 10, but if SAP Sybase ASE only sees one tempdb device, some parallelism is disabled •Only some of this can be overridden
  • 26. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(*) Multiple tempdb databases (ASE 12.5.0.3+) •Multiple tempdb system tables (useful even with ASE 15.0.2+) •Multiple tempdb logs! •Separate users and applications into specifically optimized tempdbs •OLTP vs. reporting vs. batch? •Reserve one for DBAs? •Very useful with IMDB tempdbs •User-defined tempdb groups now possible in ASE 15.5 (*) already counted
  • 27. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#39) sp_configure “session tempdb log cache size” (ASE 15+) •ULC just for tempdb •Can set very large without implications for user databases •(#40) Tempdb device attributes •dsync = “false” (always!) •directio = “false” (probably – test and time this) •(#41) Tempdb logging: delayed commit db option (ASE 15+) •Return when log write starts, don’t wait until it completes
  • 28. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 17 Ideas: tempdb-specific •(#42) Tempdb logging: enable minimal logging (SAP Sybase ASE 15.5+) •Try to avoid flushing log records to transaction log •Needs IMDB or RDDB •(#43) Tempdb logging: sp_logiosize •Set to size of 8 SAP Sybase ASE pages •(#44) dbcc tune (deviochar, […]) •If special h/w has been used for tempdb (i.e., SSD), effectively increases I/O batch size for that device •(#45) CIS proxy tables: relocated joins (SAP Sybase ASE 15.0.2+) •CIS proxy tables to another SAP Sybase ASE •If both are SAP Sybase ASE version 15.0.2+, significantly fewer tempdb I/ Os •Set with “sp_serveroption”
  • 29. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Agenda Tempdb Overview ASE server-wide tuning that affects tempdb Tempdb-specific tuning Factors external to ASE •6 ideas for tuning tempdb performance Tempdb SQL and per-object tuning measures
  • 30. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 6 Ideas: External to ASE •(#46) Disk hardware type and speed •RAMdisk > tmpfs > SSD > “tier one” storage (even if not otherwise a tier-one app) •(#47) Disk location •Co-location; separate LUNs •Consider local disk for tempdb rather than SAN •(#48) Disk partition type: file system vs. raw partition •Raw partition vs. file system •Synchronous vs. asynchronous reads •Raw partition on ZFS only supported in SAP Sybase ASE 15.0.3 ESD #2+
  • 31. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 6 Ideas: External to ASE •(#49) O/S tuning for I/O on tempdb LUNs •Very platform-dependent •Talk to your sysadmins •Examples: I/O fencing; SAN controller cache; file system mount options; O/S polling for completed I/Os •(#50) Disable SAN replication and snapshots for tempdb disks •No recoverability requirement for tempdb •Note: there is an availability requirement! •(#51) Appropriate RAID for tempdb disks •RAID 10 > RAID 0+1 > RAID 5 > RAID 0 > RAID 1 > JBOD
  • 32. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 Agenda Tempdb Overview ASE server-wide tuning that affects tempdb Tempdb-specific tuning Factors external to ASE Tempdb SQL and per-object tuning measures •13 ideas for tuning tempdb performance
  • 33. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 13 Ideas: SQL and object-specific •(#52) Work less: set-based SQL •Avoid row-based logic (cursors, WHILE loops) •(#53) Work less: temp table rows and columns •Only write rows into tempdb if you will use them more than once •May be an argument for avoiding locking in base tables •Only write columns into tempdb if you will use them at all •(#54) Work less: truncate temp tables before drop •There is an implicit drop temp table at the end of its session context (connection or procedure) •Good practice – explicitly truncate tables before they are dropped •SAP Sybase ASE does this for you in all modern versions, but arguably good practice regardless
  • 34. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 13 Ideas: SQL and object-specific •(#55) Work less: multiple inserts to same temp table •Worst: create table, insert […] select, insert […] select •Still bad: select into, insert […] select •Better: select into […] union select •(#56) Work less: use select into, not create table •Myth 1: “select into holds locks on system tables” BUSTED! •Myth 2: “needed so procedures know about #tables” BUSTED! •(#57) Work less: derived tables (SAP Sybase ASE 12.5.1+) •If using temp rows only once, why use temp table at all? •Consider a view or derived tables
  • 35. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 13 Ideas: SQL and object-specific •(#58) Work smarter: create indexes on temp tables •Obvious but often overlooked •All normal rules and tuning measures apply •“But SAP Sybase ASE won’t know about these indexes!” •Hold that thought… •(#59) “But the optimiser doesn’t know…” •Workaround 1: create proc…with recompile •Workaround 2: exec proc…with recompile •Workaround 3: update (index) statistics #temptable •Workaround 4: create in parent proc, call in sub-proc •Workaround 5: delayed compilation (SAP Sybase ASE 15.0.3+)
  • 36. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 13 Ideas: SQL and object-specific •(#60) Global shareable temp tables •Uses spid as leading column in PK, locked datarows •Users only see rows where spid = “@@spid” •Enforced in SQL or FGAC logic •(#61) Temp table isolation levels •Not needed for #tables! •For any shareable temp tables, use the least restrictive isolation level required by business rules •Don’t forget “readpast” locking – perfect for queues!
  • 37. (c) 2015 Independent SAP Technical User GroupAnnual Conference, 2015 13 Ideas: SQL and object-specific •(#62) Temp table locking schemes •Also relevant only for shareable temp tables •(#63) Temp table partitions (SAP Sybase ASE 15.0+) •select […] into […] partition […] •May still be useful for private #temp tables – parallel query •(#64) Set exp_row_size on DOL temp tables •Can make significant different to size and hence I/Os! •(*) Compressed temp tables (SAP ASE 15.5+) •Permanent shareable tables only, not #temp tables •Requires separate (paid) license •Fewer I/Os (maybe more CPU use) (*) already counted
  • 38. Annual Conference, 2015 (c) 2015 Independent SAP Technical User Group QuestionsandAnswersQuestionsandAnswers
  • 39. Annual Conference, 2015 (c) 2015 Independent SAP Technical User Group Thank You for AttendingThank You for Attending Pleasecompleteyour session feedbackPleasecompleteyour session feedback formform