- Forum
- T24 Technical Discussions
- T24 Administration
- Performance issue in SELECT statement in JBASE R9
×
Discuss about Archiving, Close of Business, Delivery Setup, Security Management System, Global Processing etc…
Performance issue in SELECT statement in JBASE R9
- yousef2006
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
15 years 5 months ago #5217
by yousef2006
Performance issue in SELECT statement in JBASE R9 was created by yousef2006
Performance issue in SELECT statement in JBASE R9
If we use more than one field in SELECT statement (the two fields are indexed) the statement execution take a long time. If we use only one field, the execution is very fast.
Example :
We have two indexes on FBNK.SECURITY.POSITION : SECURITY.ACCOUNT and SECURITY.NUMBER
jsh t24r9 ~ -->time SELECT FBNK.SECURITY.POSITION WITH SECURITY.ACCOUNT EQ "111111"
No Records selected
usr: 0.00 sys: 0.00 elapsed: 0m0.00s
jsh t24r9 ~ -->time SELECT FBNK.SECURITY.POSITION WITH SECURITY.NUMBER EQ "001111-000"
13697 Records selected
usr: 0.00 sys: 0.00 elapsed: 0m0.00s
>
jsh t24r9 ~ -->time SELECT FBNK.SECURITY.POSITION WITH SECURITY.ACCOUNT EQ "111111" AND WITH SECURITY.NUMBER EQ "001111-000"
No Records selected
usr: 24.89 sys: 11.57 elapsed: 0m36.50s
Is somebody face this problem and have solution?
Thanks
If we use more than one field in SELECT statement (the two fields are indexed) the statement execution take a long time. If we use only one field, the execution is very fast.
Example :
We have two indexes on FBNK.SECURITY.POSITION : SECURITY.ACCOUNT and SECURITY.NUMBER
jsh t24r9 ~ -->time SELECT FBNK.SECURITY.POSITION WITH SECURITY.ACCOUNT EQ "111111"
No Records selected
usr: 0.00 sys: 0.00 elapsed: 0m0.00s
jsh t24r9 ~ -->time SELECT FBNK.SECURITY.POSITION WITH SECURITY.NUMBER EQ "001111-000"
13697 Records selected
usr: 0.00 sys: 0.00 elapsed: 0m0.00s
>
jsh t24r9 ~ -->time SELECT FBNK.SECURITY.POSITION WITH SECURITY.ACCOUNT EQ "111111" AND WITH SECURITY.NUMBER EQ "001111-000"
No Records selected
usr: 24.89 sys: 11.57 elapsed: 0m36.50s
Is somebody face this problem and have solution?
Thanks
Please Log in or Create an account to join the conversation.
- vani
- Visitor
-
15 years 5 months ago #5218
by vani
Replied by vani on topic Re:Performance issue in SELECT statement in JBASE R9
To improve the performance you can index the most-used fields ie., SECURITY.ACCOUNT, DEPOSITORY
Please Log in or Create an account to join the conversation.
- vani
- Visitor
-
15 years 5 months ago #5219
by vani
Replied by vani on topic Re:Performance issue in SELECT statement in JBASE R9
Sorry i jus now noticed that you have mentioned that both the fields are indexed. May be you can try rebuilding the indexes and try. Because we have also faced in our client site once and after rebuilding the indexes problem got solved.
Please Log in or Create an account to join the conversation.
- yousef2006
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
15 years 5 months ago #5224
by yousef2006
Replied by yousef2006 on topic Re:Performance issue in SELECT statement in JBASE R9
thanks
for your replay
see the index
sh t24r9 ~ -->CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.ACCOUNT BY SECURITY.ACCOUNT
Notice: Command converted to 'CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.ACCOUNT BY-AL 1'
Index definition 'SECURITY.ACCOUNT' created successfully
Deleting index records for definition 'SECURITY.ACCOUNT' in file 'SP.BAK' ...
Building index records in file 'SP.BAK' ...
.......................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
.....................
jsh t24r9 ~ -->
jsh t24r9 ~ -->CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.NUMBER BY SECURITY.NUMBER
Notice: Command converted to 'CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.NUMBER BY-AL 2'
Index definition 'SECURITY.NUMBER' created successfully
Deleting index records for definition 'SECURITY.NUMBER' in file 'SP.BAK' ...
Building index records in file 'SP.BAK' ...
...................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..........................................
jsh t24r9 ~ -->
3.LIST-INDEX:
=================
jsh t24r9 ~ -->LIST-INDEX -a FBNK.SECURITY.POSITION
INDEX definitions for file FBNK.SECURITY.POSITION at 13:26:11 15 JUN 2010 PAGE 1
INDEX NAME................. SECURITY.ACCOUNT
LOCALE NAME................ C
SORT KEYS.................. AL
BASE FID................... 89305088
CREATE DATE................ 15 JUN 10
CREATE TIME................ 13:13:07
MODIFIED DATE.............. 15 JUN 10
MODIFIED TIME.............. 13:22:54
INDEX NUMBER............... 0
DEBUG PSEUDO CODE?......... NO
NULL INDEX VALUES ALLOWED?. YES
CASE INSENSITIVE?.......... NO
MULTI VALUE EXTRACT?....... YES
DATA AND INDEX IN SYNC?.... YES
MAXIMUM VALUES EXTRACTED... UNLIMITED
WRITE mode................. YES
INDEX DEFINITION........... BY-AL 1
LOOKUP.....................
INDEX NAME................. SECURITY.NUMBER
LOCALE NAME................ C
SORT KEYS.................. AL
BASE FID................... 106930176
CREATE DATE................ 15 JUN 10
CREATE TIME................ 13:22:54
MODIFIED DATE.............. 15 JUN 10
MODIFIED TIME.............. 13:22:54
INDEX NUMBER............... 1
DEBUG PSEUDO CODE?......... NO
NULL INDEX VALUES ALLOWED?. YES
CASE INSENSITIVE?.......... NO
MULTI VALUE EXTRACT?....... YES
DATA AND INDEX IN SYNC?.... YES
MAXIMUM VALUES EXTRACTED... UNLIMITED
WRITE mode................. YES
INDEX DEFINITION........... BY-AL 2
LOOKUP.....................
2 Records Listed
for your replay
see the index
sh t24r9 ~ -->CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.ACCOUNT BY SECURITY.ACCOUNT
Notice: Command converted to 'CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.ACCOUNT BY-AL 1'
Index definition 'SECURITY.ACCOUNT' created successfully
Deleting index records for definition 'SECURITY.ACCOUNT' in file 'SP.BAK' ...
Building index records in file 'SP.BAK' ...
.......................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
.....................
jsh t24r9 ~ -->
jsh t24r9 ~ -->CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.NUMBER BY SECURITY.NUMBER
Notice: Command converted to 'CREATE-INDEX -vw FBNK.SECURITY.POSITION SECURITY.NUMBER BY-AL 2'
Index definition 'SECURITY.NUMBER' created successfully
Deleting index records for definition 'SECURITY.NUMBER' in file 'SP.BAK' ...
Building index records in file 'SP.BAK' ...
...................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..........................................
jsh t24r9 ~ -->
3.LIST-INDEX:
=================
jsh t24r9 ~ -->LIST-INDEX -a FBNK.SECURITY.POSITION
INDEX definitions for file FBNK.SECURITY.POSITION at 13:26:11 15 JUN 2010 PAGE 1
INDEX NAME................. SECURITY.ACCOUNT
LOCALE NAME................ C
SORT KEYS.................. AL
BASE FID................... 89305088
CREATE DATE................ 15 JUN 10
CREATE TIME................ 13:13:07
MODIFIED DATE.............. 15 JUN 10
MODIFIED TIME.............. 13:22:54
INDEX NUMBER............... 0
DEBUG PSEUDO CODE?......... NO
NULL INDEX VALUES ALLOWED?. YES
CASE INSENSITIVE?.......... NO
MULTI VALUE EXTRACT?....... YES
DATA AND INDEX IN SYNC?.... YES
MAXIMUM VALUES EXTRACTED... UNLIMITED
WRITE mode................. YES
INDEX DEFINITION........... BY-AL 1
LOOKUP.....................
INDEX NAME................. SECURITY.NUMBER
LOCALE NAME................ C
SORT KEYS.................. AL
BASE FID................... 106930176
CREATE DATE................ 15 JUN 10
CREATE TIME................ 13:22:54
MODIFIED DATE.............. 15 JUN 10
MODIFIED TIME.............. 13:22:54
INDEX NUMBER............... 1
DEBUG PSEUDO CODE?......... NO
NULL INDEX VALUES ALLOWED?. YES
CASE INSENSITIVE?.......... NO
MULTI VALUE EXTRACT?....... YES
DATA AND INDEX IN SYNC?.... YES
MAXIMUM VALUES EXTRACTED... UNLIMITED
WRITE mode................. YES
INDEX DEFINITION........... BY-AL 2
LOOKUP.....................
2 Records Listed
Please Log in or Create an account to join the conversation.
- vani
- Visitor
-
15 years 5 months ago #5227
by vani
Replied by vani on topic Re:Performance issue in SELECT statement in JBASE R9
After rebuilding indexes, did you check how much time system took for the select statement on SECURITY.MASTER on the indexed fields?
Please Log in or Create an account to join the conversation.
- silvester
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
15 years 3 months ago #5504
by silvester
Replied by silvester on topic Re:Performance issue in SELECT statement in JBASE R9
I think starting R08, ff you are going to use the SELECT command in your program, I suggest to use DAS instead. There are pre-define DAS for some application which is like a pre-define select based on ID, fields, etc.
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Administration
- Performance issue in SELECT statement in JBASE R9
Time to create page: 0.042 seconds