170 likes | 242 Views
Best Practice for Performance. Edward M. Kwang President. Ways to Improve Performance. Client Server Hardware Operating System Elliott Application Software. Btrieve vs. SQL. Btrieve Pro: Transaction Con: Report SQL Pro: Report Con: Transaction. How Btrieve Work. It’s Record Manager
E N D
Best Practice for Performance Edward M. Kwang President
Ways to Improve Performance • Client Server • Hardware • Operating System • Elliott Application Software
Btrieve vs. SQL • Btrieve • Pro: Transaction • Con: Report • SQL • Pro: Report • Con: Transaction
How Btrieve Work • It’s Record Manager • Retrieve One Record At A Time • Fast With Transaction Operation (Record by Record) Since There’s Very Little Overhead with Btrieve Engine
How SQL Work • It’s Relational Database Engine • Client Issue SQL Statement to Server • Select Cus_No, Cus_Name, Cus_St From ARCUSFIL Where Cus_St = ‘CA’ • Server Compile The Statement And Decide The Best Way to Retrieve the Data • The Data Is Retrieved And Send Back to Client
Performance Improvement • The amount of improvement by using SQL for report process range from a few times to more than 10 times: • It’s usually determined by three factors: • Network speed: • Less improvement with faster network • I.e. Big gain if you use 10-BaseT and less gain if you use Giga-Bit Ethernet • Server speed: • More improvement with faster server • CPU, Memory and Hard Disk (RAID) • The nature of the report
SQL Is Faster With Report • In the Previous Example, SQL will • scan through the table of ARCUSFIL and pick out those customers that CUS_ST = ‘CA’. This is done on the server • return three columns back to client which reduce network traffic. • Vs. Btrieve will • Scan through the table of ARCUSFIL on the client side • Get entire record of customer, even though it only need three columns
Btrieve Is Faster With Trx • For Record by Record Type of Operation, Btrieve is Faster Because It Does Not Have the Added Layer to Slow It Down. • Example of Transaction Processing: • Order Entry • Cash Receipt • New A/P Trx Entry • Inventory Trx Processing
Elliott And Crystal Report • Elliott Work At Btrieve Level (Transactional) • The Future Direction of Elliott Report is Crystal • If We Use Crystal Report at The SQL level, then we have • “The Best of Both Worlds” • Pervasive’s Slogan
Client Server • Crystal Report Writer • Use ODBC instead of Database Files • It’s SQL vs. Btrieve • Make no difference if • DB is small • key is readily available • All Data Need to Return to Client for Processing • Elliott • Running Elliott on Workstation • Running Elliott on Server • Defer Process on Server • Faster Report Processing • Less Chance of Data Corruption
Hardware • RAID-5 • At Least Three Hard Drives • Form Capacity of Two Hard Drives • Three disk heads to retrieve data is faster than one disk head. • CPU • CPU Speed • Multiple CPU • Memory • 1 giga or higher is recommended • Network Speed, 10 vs 100 vs 1000 • Switch vs. Hub
Operating System • Use Same Hardware Configuration • Windows NT vs. Netware 3.12 • Windows NT is about 50% faster • Windows 2000 vs. Windows NT • Windows 2000 is about 50% faster • PSQL Support • PSQL has better support on Windows NT/2000
Elliott Application Software • Purge Your Data • Purge COP Posted Orders • Purge I/M Inventory Trx Audit Trails • Purge Distribution Files • Purge AR and AP Open Item Files • Do Not Purge These Files (Sales Analysis) • COP History Trx File (CPHSTTRX) • COP Invoice History Files
Performance Demo • Run Sales Analysis by State Report • Run on Workstation • Run on Windows 2000 Server • Do the Same for AR Aging Report • Why The Performance Gain Between These Two Reports Are Different?
Case Study • Lynn Robert International Recently Upgrade from Netware 3.12 to Win2000. They are disappointed that there’s not much performance improvement. • Network: 10-BaseT • Server: High End Windows 2000 Server • Aging Report: 5 Minutes • POST COP Invoices: 1 Hour 30 Minutes • Solution: run reports and posting on server • Aging Report: 10 Seconds • Post COP Invoices: 4 Minutes
Analysis • Why Lynn Robert performance gain is higher than Netcellent? • Network Speed • 10 Base-T vs. 100 Base-T • Switch vs. Hub • Sever Speed • Not RAID-5 Configuration, CPU & Memory
Formulating A Strategy • Use Windows 2000 Server • Run Defer Processing on Server • Faster • Reliable & Less Chance of Data Corruption • Use ODBC with Crystal • Performance with Client Server • Ease of Use with Views • Security • Purge Your Elliott Data