Labels

Showing posts with label Technical General. Show all posts
Showing posts with label Technical General. Show all posts

Monday, December 3, 2018

Generate single index on table 

Transaction tables such as F0911, F4111 etc hold a huge amount of data probably a third of petabyte. Generating indexes on such tables (through JDE) are a huge task and can hold up the database for a long period of time, probably crash it. There are multiple ways to handle this issue
Method 1 (most common and safest)
Generate the index in the database (via SQL) with the same column listing and properties as required.
You know why this is the most common and safest way to do? If there are users logged on to the system, or processes running which use the table – all your indexes get locked up. Thus JDE cannot generate the index; only SQL can.

Method 2 (Custom and 2nd best)
Use the API – 
JDB_CreateSingleIndex(hUser, szTableName, szObjectOwnerID, szSignonPassword, szDatabasePath, idIndexId, &nErrorNum)
With this API you can generate the particular index. Only catch is that, if you are modifying an index, you will have to drop the index first and then generate.
These API’s are encapsulated within the standard JDE BSFN – B9800200 (JDB Data Management Source File). Now I have termed this as 2nd best, since it’s in our control on what we are asking JDE to do. You will need to log off

Featured Post

Generate single index on table 

Transaction tables such as F0911, F4111 etc hold a huge amount of data probably a third of petabyte. Generating indexes on such tables (th...

Popular Posts