Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Retrieving large result sets from Oracle DB

Explorer ,
Dec 11, 2008 Dec 11, 2008
I have a webbased app which in a dev environment retrieves 41K records on the initial db query for display to the user. I cache the query as the user wants to be able to page through the result set, displaying 20 records at a time in the GUI.

The initial db query to retrieve 41K records takes around 25 seconds to move from the db box to the CF server box. We are expecting 10 times the amount of records in production!

The current method used is a CFC function containing the SQL query.

Does anyone have any ways to speed this up, or am I at the mercy of the network?

Any help will be greatly appreciated!



TOPICS
Database access
734
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Dec 11, 2008 Dec 11, 2008
I'd look at doing some db server side paging via a stored procedure rather than paging using CFML. This way you're only passing 20 rows at a time to the CF server.
Translate
Advisor ,
Dec 11, 2008 Dec 11, 2008
I'd look at doing some db server side paging via a stored procedure rather than paging using CFML. This way you're only passing 20 rows at a time to the CF server.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 12, 2008 Dec 12, 2008
LATEST
Bob,

And I didn't think of this myself because...?

Talk about having blinders on. Thanks for taking them off!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 11, 2008 Dec 11, 2008
I'd be wondering why it's necessary to return so many records from the initial query.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources