Home »
Public Forums »
archive »
Dataminer: faster way to get all records in a IDLdbRecordset table?
Dataminer: faster way to get all records in a IDLdbRecordset table? [message #36461] |
Wed, 17 September 2003 08:38 |
timothy.williams
Messages: 20 Registered: October 2001
|
Junior Member |
|
|
I want to put the records in a database table into an IDL table
widget. For fairly large tables, (> ~1500 rows), it's fairly slow and
I get "Not responding" in the Task Manager for awhile while I'm
getting each record. Here's what I'm doing now:
ors=obj_new('IDLdbRecordset', table=tablename)
status=ors->moveCursor(/first)
if status eq 1 then begin
rec=ors->getRecord()
status=ors->moveCursor(/next)
while (status eq 1) do begin
rec=[rec, ors->getRecord()]
status=ors->moveCursor(/next)
end while
endif
Is there a faster way to get all of the records?
My database is on a Sun running Oracle. IDL is on a Win2000 Pro
machine. My response time is better when I'm accessing an Access
database locally. (Duh!) I haven't exported the large Oracle table to
Access yet to do a better comparison.
Thanks.
|
|
|
Current Time: Wed Oct 08 18:40:39 PDT 2025
Total time taken to generate the page: 0.00436 seconds