Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 27 DEC 2003 01:26:29PM Wilhelm Schmitt wrote:

In an application we let the user define search criteria. If the user defines a poor criteria, the index lookup (through btree.extract) might yield a 100,000 keys or more. In this case the server needs considerable time to communicate the user that the selection is most probably useless.

Questions:

1. Is there a direct way to tell the user that a certain indexed word has "n" ocurrences and allow the program to avoid the btree.extract at all?

2. Is there a way to tell btree.extract to abort - let's say after the first 1,000 ocurrences?

Regards

Wilhelm


At 27 DEC 2003 02:21PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Btree.Read is probably what you need here - you get a node back at a time and can tweak your code appropriately.

http://www.revelation.com/knowledge.nsf/461ff2bd5a8ddeed852566f50065057d/922322b08a81d2ff852563e200499a00?OpenDocument

The Sprezzatura Group

World Leaders in all things RevSoft

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/55bfad561bea748185256e0900654d3b.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1