Global Payroll Performance Optimisation - I David Kurtz Go-Faster Consultancy Ltd.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

From Startup to Enterprise A Story of MySQL Evolution Vidur Apparao, CTO Stephen OSullivan, Manager of Data and Grid Technologies April 2009.
Chapter 13: Query Processing
Chapter 5: CPU Scheduling
Slide 1 FastFacts Feature Presentation April 9, 2012 To dial in, use this phone number and participant code… Phone number: Participant code:
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
1 Episode III in our multiprocessing miniseries. Relaxed memory models. What I really wanted here was an elephant with sunglasses relaxing On a beach,
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
Year 6 mental test 5 second questions
Data recovery 1. 2 Recovery - introduction recovery restoring a system, after an error or failure, to a state that was previously known as correct have.
Relational data integrity
1 Term 2, 2004, Lecture 9, Distributed DatabasesMarian Ursu, Department of Computing, Goldsmiths College Distributed databases 3.
1 Processes and Threads Creation and Termination States Usage Implementations.
Database Systems: Design, Implementation, and Management
1 Administrator Introduction Driver Discount Lodging Program For T-Chek Systems.
PeopleSoft Ping David Kurtz
Configuration management
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Chapter 18 Methodology – Monitoring and Tuning the Operational System Transparencies © Pearson Education Limited 1995, 2005.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
QA practitioners viewpoint
Database Performance Tuning and Query Optimization
OO databases 1 Object Oriented databases. OO databases 2 Developing OODBMS - motivation motivation more and more application areas require systems that.
Data Structures Using C++
ABC Technology Project
11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
MySQL Access Privilege System
Yong Choi School of Business CSU, Bakersfield
Go-Faster Consultancy Ltd.1 Experiences of Global Temporary Tables in Oracle 8.1 David Kurtz Go-Faster Consultancy Ltd.
1 of 27 DA1241 Archive Companies Last updated: March-2004 DA1241 Archive Companies.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
Page Replacement Algorithms
Chapter 10: Virtual Memory
Virtual Memory II Chapter 8.
Legacy Systems Older software systems that remain vital to an organisation.
Describing Complex Products as Configurations using APL Arrays.
Modelling a Complex Batch Schedule in PeopleSoft David Kurtz Go-Faster Consultancy Ltd.
KDE GL UTILITIES FOR THE CHART OF ACCOUNTS MIGRATION Kristin Lambert – OET.
HORIZONT TWS/WebAdmin TWS/WebAdmin for Distributed
Record Keeping F OR A S MALL B USINESS. RECORD KEEPING 2 Welcome 1. Agenda 2. Ground Rules 3. Introductions.
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
Lecture plan Transaction processing Concurrency control
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
3.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Process An operating system executes a variety of programs: Batch system.
Processes Management.
Executional Architecture
Unit 1:Parallel Databases
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
© 2004, D. J. Foreman 1 Scheduling & Dispatching.
25 seconds left…...
Graphing AWR Data in Excel
Global Payroll Performance Optimisation - II
Performance Tuning for Informer PRESENTER: Jason Vorenkamp| | October 11, 2010.
Håkan Sundell, Chalmers University of Technology 1 Evaluating the performance of wait-free snapshots in real-time systems Björn Allvin.
SE-292 High Performance Computing
We will resume in: 25 Minutes.
PSSA Preparation.
Go-Faster Consultancy Ltd.1 Single Table Clusters, an alternative to partitioning? David Kurtz Go-Faster Consultancy Ltd.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Triggers A Quick Reference and Summary BIT 275. Triggers SQL code permits you to access only one table for an INSERT, UPDATE, or DELETE statement. The.
DBMS Implementation Chapter 6.4 V3.0 Napier University Dr Gordon Russell.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
Infrastructure for Data Warehouses. Basics Of Data Access Data Store Machine Memory Buffer Memory Cache Data Store Buffer Bus Structure.
Presentation transcript:

Global Payroll Performance Optimisation - I David Kurtz Go-Faster Consultancy Ltd.

Global Payroll Performance Optimisation © Oracle Database Specialist –Independent consultant Performance tuning –PeopleSoft ERP –Oracle RDBMS Book – UKOUG Director Server Tech & PeopleSoft Oak Table Who Am I?

Global Payroll Performance Optimisation © Caveat I am going to simplify some of the technical concepts in this presentation.

Global Payroll Performance Optimisation © Agenda ‘Streaming’ –Parallel processing Data Volume Read Consistency Partitioning Reporting Archiving

Global Payroll Performance Optimisation © Parallel processing All modern machines have multiple processors, –most of the processors have multiple cores. –Even the CPU in my 4 year old laptop has a 2 core CPU.

Global Payroll Performance Optimisation © PeopleSoft Batch Programs Only run on one CPU at any one time. Client Server processes –Program (COBOL or Application Engine) –Database (eg. Oracle) Either busy executing COBOL or waiting for the database. –If your payroll calculation is a single process you are not getting value for money!

Global Payroll Performance Optimisation © Payroll ‘Streaming’ Several GP processes can be split up. –Each piece processes a distinct set of employees Range of EMPLID –The pieces can be run concurrently. –Only one global definition of streams. –Maximum number of streams determined by hardware.

Global Payroll Performance Optimisation © Streamable Processes Payroll Calculation Banking Preparation GL Preparation EDI Preparation Payslip Preparation

Global Payroll Performance Optimisation © Payroll ‘Streaming’ Challenges Payroll isn’t over until the last stream completes. –Streams need to be evenly balanced. –Employee churn? Inter-stream contention –Shared working storage tables

Global Payroll Performance Optimisation © How Many Streams? In a well tuned systems, the payroll calculation phase spends about –2/3 of its time in COBOL –1/3 on the database. Number of streams should not exceed –3 * CPU on database server –1.5 * CPU on Process Scheduler server Payroll identification process is database intensive.

Global Payroll Performance Optimisation © Employee Churn EMPLID is allocated as an accession number. Streams are a range of EMPLIDs –New employees are hired into the last stream –Employees are terminated across all streams Over time the streams will go out of balance –Last stream will take longest

Global Payroll Performance Optimisation © Balancing Streams Balance employees across streams on basis of –80% number of payroll segments per stream –20% number of JOB history rows Longer serving employees in earlier streams likely to have more payroll segment and job history. –Make allowance for employee churn. You will need to periodically rebalance the streams. –Balance for the largest payroll.

Global Payroll Performance Optimisation © Reversing the EMPLID Reverse the EMPLID –Instead of EMPLID –Use EMPLID Streams stay balanced because new employees hired across range BUT you must do this before you go live!

Global Payroll Performance Optimisation © Reversing the EMPLID

Global Payroll Performance Optimisation © Inter-stream Contention Streams are just ranges of EMPLIDs. Oracle inserts data into the first available block (roughly speaking) Multiple streams insert data simultaneously into the same data blocks in result tables. Payroll cancel/recalculation deletes from result tables. Multiple transactions concurrently update different rows in the same block. –On Oracle/SQL Server >=2005: No locking, streams continue to run, but read consistency processing is expensive –Other database can experience page level locking

Global Payroll Performance Optimisation © Read Consistency The data set that you query remains the same throughout the life of your query. –If somebody else updates data that you are reading (and commits), after your query starts, then you see the original value. Thus, readers do not block writers or vice versa. Oracle has always done this since SQL Server 2005 has ‘multi-versioning’ option Other databases either block or can permit ‘dirty read’.

Global Payroll Performance Optimisation © Read Consistency Oracle achieves this by storing ‘undo’ information for every change –Recovers ‘read-consistent’ in-memory copy of data block to point in time when query started. –A good reason for buying Oracle –Resource intensive process –Performance problem if abused. Global Payroll is the perfect storm!

Global Payroll Performance Optimisation © Avoiding Inter-stream Contention Prevent different streams accessing the same data blocks –Range Partition result tables to match stream ranges –Use Global Temporary Tables (Oracle) for working storage tables –Partition these also on other platforms. Now different streams access different partitions. No code change, a job for the DBA –licensed option on most platforms

Global Payroll Performance Optimisation © Partitioning Partitioned Table –Different physical components Value of data determines physical location –Logically still one table –Transparent to application –Rather like a multi-part encyclopaedia.

Global Payroll Performance Optimisation © Global Temporary Tables A temporary object –Save some of overheads associated with regular tables –Each session gets its own physical copy.

Global Payroll Performance Optimisation © Group Lists Specify a list of individual EMPLIDs for whom to run pay calc or another process. Some customers have experienced problems when run groups shortly before or during larger batch payroll calculations. Why?

Global Payroll Performance Optimisation © Cost Based Optimizer SQL Execution Plan Caching Bind Variable Peeking during Parse Different Plan for Group List –Because different bind variables But plan cached and gets used for main pay calculation which then runs longer than usual!

Global Payroll Performance Optimisation © Plan Stability Remember the good plan used by large payroll. Force it to be used for all payrolls including group list. –Data Volumes small so poor plan won’t really matter. Oracle Stored Outline –No code change, DBA can implement.

Global Payroll Performance Optimisation © Data Volume Payroll generates a lot of data. Every pay period it generates more data. Partitioning can offer ways of accessing the data you want quickly –Without having to trawl through data you don’t want. Need to consider how long you need data –Do you still need data from last tax year?

Global Payroll Performance Optimisation © Archiving Put the data you do need to keep into a reporting table –Remove data from the live result tables –Partitioning can help you move/delete this data efficiently –May need to rebuild tables where you have to use DELETE Reduced data volumes should improve performance of reports.

Global Payroll Performance Optimisation © Reporting Payroll result tables delivered with single index –Not suitably indexed for all reporting requirements Particularly single PIN queries –Adding more indexes would degrade calculation performance –Consider generating reporting table Subset of data, and indexed as necessary.

Global Payroll Performance Optimisation © Conclusion

Questions?