Normal Topic Fastest way to get data from current results batch (Read 652 times)
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Fastest way to get data from current results batch
Sep 14th, 2010 at 3:06pm
Print Post Print Post  
I'd like to have a button on my form to quickly calculate the sum for a money field for all records in the current results batch. The command @FormGetValues() in combination with @SumListValues()  works fine, but is too slow when dealing with large batches (more than 500 records, flat database, no sub-records.).

I would like to make use of the speed of XResultSet commands to present this easy calculation to the user (in a writeln window or in a static LE on the form), based on any results batch that a user chooses to retrieve. However, the documentation (and my limited knowledge) for XResultSets leads me to believe that these powerful commands only create and work from a 'virtual' set of records that reside in Sesame memory, and are not 'visible' to the user and must be retrieved using programming.

Am I way off base here? Any suggestions are welcome.

Sincerely,
Steve

  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Fastest way to get data from current results b
Reply #1 - Sep 14th, 2010 at 6:04pm
Print Post Print Post  
I'd think that the easiest and fastest way would be a report.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Fastest way to get data from current results b
Reply #2 - Sep 14th, 2010 at 7:14pm
Print Post Print Post  
Thanks Erika. Our reports have always been very specific to certain result sets, but I can see now how a more generic report could be used for a variety of purposes.

Simple and effective. Thanks for enlightening me! Wink

Steve
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Fastest way to get data from current results b
Reply #3 - Sep 14th, 2010 at 7:21pm
Print Post Print Post  
Steve_in_Texas wrote on Sep 14th, 2010 at 7:14pm:
Thanks Erika. Our reports have always been very specific to certain result sets, but I can see now how a more generic report could be used for a variety of purposes.

Simple and effective. Thanks for enlightening me! Wink

No problem. If you don't attach a Retrieve Spec, the report will use whatever records you currently have retrieved.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged