Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DBMS Key and Index - how to differentiate, or am I missing something?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DBMS Key and Index - how to differentiate, or am I missing something?
 Login/Join
 
Expert
posted
How does one differentiate between keys and indexes in WebFOCUS meta-data?

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
In a FOCUS database or a RDBMS?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
Keys are identified by the SEGTYPE parameter and are always at the beginning of the master. This is for the most part true of FOCUS and relational.

For FOCUS files, indexes are identified by the INDEX or FILETYPE parameter. In FOCUS files, keys do not have to be indexes and vice versa.

For relational, the indexes are identified in the data base and are not shown in the WebFOCUS metadata.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
The question is regarding DB2. "For relational, the indexes are identified in the data base" - that's what I was afraid of!

How do GUI developers know that the columns they're joining with; filtering on; summing by; are indexed so they can generate efficient programs? If they're using the GUI, they're most likely not looking at the relational DB tables via a client tool...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Hey Francis,

Found this on the web, may help, with mods:

  
SELECT 	TABSCHEMA, TABNAME, TYPE, COLCOUNT, 
				KEYCOLUMNS, KEYINDEXID, KEYUNIQUE 
FROM 	SYSCAT.TABLES 
WHERE 	TABSCHEMA NOT LIKE 'SYS%' AND 
				TYPE = 'T' AND 
				TABNAME = 'TABLE_NAME'



Here's the Link...

hth

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Tom,

Thanks for that push in the right direction! I spent a bit of time with SYSCOLUM, the WebFOCUS master, when I should have used the DB2 ones!!!

I hope with one join from syscat.tables to syscat.columns I can achieve what I need.

Much appreciated,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
That link is VERY HELPFUL!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
With ALL the help you've given on this Forum, glad it can sometimes go the other way.

Welcome!!!


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
quote:
How do GUI developers know that the columns they're joining with; filtering on; summing by; are indexed so they can generate efficient programs? If they're using the GUI, they're most likely not looking at the relational DB tables via a client tool...


We had performance issues and was advised to refer to db2 flat files only which allows the sql optimizer(assuming the optimizer is turned on in db2 environment) figure out the best logical files for the request at run-time. The optimization is automatically turned off if you choose to pick your own logical files. Depands on how much you know your data, you may out smart the optimizer.

I still have problem with WF left-outer join that you can not filter the join-to fields right-a-way, that you have to hold several times to get the final results. Performance will hit hard if you are dealing with large amount of data and not able to do aggregations and filtering immediately, sending useless data across the iway.


Hua


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Gold member
posted Hide Post
You can get index information for SQL Server tables using: 'EXEC sp_helpindex TableName'
 
Posts: 60 | Location: Ellensburg Washington | Registered: May 22, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DBMS Key and Index - how to differentiate, or am I missing something?

Copyright © 1996-2020 Information Builders