Www.allegroconsultants.com DB-12 - Pick An Index, Any Index… Michael Lonski Allegro Consultants, LTD.

Презентация:



Advertisements
Похожие презентации
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Applying Route-Maps as BGP Filters.
Advertisements

11 BASIC DRESS-UP FEATURES. LESSON II : DRESS UP FEATURES 12.
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Configuring Rules Rule Basics.
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Configuring Groups and Policies Building an Agent Kit.
1 Cutaneous Melanoma. 2 Equivalent Terms, Definitions and Illustrations Skin only C440-C449 Definitions identify reportable tumors –Evolving melanoma.
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Using CSA Analysis Configuring Application Behavior Investigation.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Complex MPLS VPNs Using Advanced VRF Import and Export Features.
© 2006 Avaya Inc. All rights reserved. Using File Management and SD-Card Handling.
Sequences Sequences are patterns. Each pattern or number in a sequence is called a term. The number at the start is called the first term. The term-to-term.
Linux Daemons. Agenda What is a daemon What is a daemon What Is It Going To Do? What Is It Going To Do? How much interaction How much interaction Basic.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Complex MPLS VPNs Introducing Central Services VPNs.
© 2009 Avaya Inc. All rights reserved.1 Chapter Two, Voic Pro Components Module Two – Actions, Variables & Conditions.
Mobility Control and one-X Mobile. Mobility Control User Configuration Mobile Call Control requires PRI-U, BRI or SIP (RFC2833) trunks in the IP Office.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Optimizing BGP Scalability Limiting the Number of Prefixes Received from a BGP Neighbor.
Structured Error Handling in the ABL Sarah Marshall QA Architect, OpenEdge Session 128.
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Creating Application Classes Working with Variables and Application Classes.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Using Outbound Route Filtering.
Indexes and Performance Supercharging Your Progress Applications BP0550: Paul Guggenheim.
Here are multiplication tables written in a code. The tables are not in the correct order. Find the digit, represented by each letter.
© 2006 Cisco Systems, Inc. All rights reserved. BSCI v Configuring EIGRP Using EIGRP in an Enterprise Network.
Транксрипт:

DB-12 - Pick An Index, Any Index… Michael Lonski Allegro Consultants, LTD.

Whats Next… Prepare

Who I Am… Started working with Progress® v3 (1986) Founded Allegro Consultants in 1993 Internationally recognized speaker Author of Coding Smart book on ADM2 Punster and Frequent Talker

…And Why I Am Here Overview index rules Practical tools, not bookish theory Focus on fact, not guesswork Compile time information Run-time information Show off skill at alliteration

Whats Next… Prepare Predict

Hierarchy For A Single Index 1. Unique index with all components involved in the equality matches 2. Most active equality matches 3. Most active range matches 4. Most active sort matches 5. First index alphabetically by index name 6. The primary index

Multiple Index Usage If indexes are available for both sides of WHERE... AND/OR, more than one index can be used Multiple indexes will *only* be used to assist in bracketing records

WHERE…AND… WHERE clause includes the use of AND All components of each index are involved in equality matches No unique indexes are involved

WHERE…OR… WHERE clause includes the use of OR Both the left and right side of the OR contain at least the lead component of an index These lead components are involved in either equality or range matches

Whats Next… Prepare Predict Prevent

Breaking The Rules FIND … WHERE ROWID ( ) = … USE-INDEX …

Breaking The Index WHERE Family.CoveredOnBenefits WHERE … MATCHES … WHERE NOT … WHERE IF … THEN … = vcInput ELSE TRUE WHERE SUBSTRING (…) = A

Whats Next… Prepare Predict Prevent Plan

XREF Information COMPILE prog.p XREF prog.xref FIND FOR EACH

Demo – XREF-demo.p

XREF Information COMPILE prog.p XREF prog.xref DEFINE Query CREATE Query

Demo – Query-demo.p

Whats Next… Prepare Predict Prevent Plan Prove

If A Query Could Talk… qryCust Did I error? Did I bracket? What did I use?

How To Ask qryCust DEFINE QUERY qCust QUERY qCust: DEFINE VARIABLE vhQryCust AS HANDLE CREATE QUERY vhQryCust vhQryCust = QUERY qCust:HANDLE

What to Ask qryCust Did I error? Did I bracket? What did I use? vhQry:INDEX-INFORMATION() ERROR-STATUS:NUM-MESSAGES ENTRY(1, vhQry:I-I) = WHOLE- INDEX

Demo – wQueryTest.w

Whats Next… Prepare Predict Prevent Plan Prove Process

OpenEdge® 10 – Log Manager New features in OpenEdge 10 Both command-line and run-time controls Highly configurable

Log Manager Controls Command Line -clientlog -logentrytypes -logginglevel -numlogfiles -logthreshold LOG-MANAGER :LOGFILE-NAME :LOG-ENTRY-TYPES :LOGGING-LEVEL :NUM-LOG-FILES :LOG-THRESHOLD

Demo – Logging-demo.p

Now that Ive rambled on, are there any questions?

Thanks for attending…