Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Whole Data Retrieval

Former Member
0 Likes
829

Hi Experts,

I have one master table, which contains about 16million records. My scenario is to retrieve all the data from the master table and display it using report. I am getting request time out error, when I use select statement. Can anyone tell me the other options to retrieve the whole data?

Regards,

Harish

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
811

Hi

you can go for CURSORS rather than directly using select statement.Using secondary indexes also you can acheive this

Regards

Pavan

Hi Experts,

I have one master table, which contains about 16million records. My scenario is to retrieve all the data from the master table and display it using report. I am getting request time out error, when I use select statement. Can anyone tell me the other options to retrieve the whole data?

Regards,

Harish

6 REPLIES 6
Read only

bpawanchand
Active Contributor
0 Likes
812

Hi

you can go for CURSORS rather than directly using select statement.Using secondary indexes also you can acheive this

Regards

Pavan

Read only

0 Likes
811

Hi Pavan,

Can you give some example coding?

My coding is ,

Select fld1 fld2 fld3 fld4 fld5 fld6 from tab1 into inttab where fld1 in fld1.

Regards,

Harish

Read only

Former Member
0 Likes
811

what is ur select syntax? how are u trying to display the data???

Read only

Former Member
0 Likes
811

User Package size option.

Assume 100000 is package size , the every time it gets 100000

first time

100000

second time

100001 to 200000

-


....

Select some number of recorda and process it and then fetch from the count where you stoped before.

or Schedule Backgrond job.

Read only

Former Member
0 Likes
811

hii harish

use maximum keys to retrive data from table with select statement.

regards

twinkal

Read only

0 Likes
811

Hai Patel,

how can i use keys in select statement to retrieve more than 1000000 records?

Regards,

Harish