Extension for selections

Variable database query options for end users are built into many applications. Since the selection result depends on the data entered, the scope of the result and the query duration are unpredictable. Wildcard entries, for example, can be problematic here, as the selection process can take several minutes and deliver a huge amount of results that are of no use to the end user.


Since version 5.7.06, the result set (and thus also the execution time) of a selection can be limited. To do this, the maximum number of records in the result set is passed as an optional argument to the SelRun() command. If this limit is exceeded during execution, the query terminates and SelRun() returns _rLimitReached as the result.

Limited result

With a limit of 1000 records, the selection is terminated prematurely when the 1001st record is found. If exactly 1000 records are found, the result is _rOK. The result set for _rLimitReached is sorted according to the selection definition and can be used in exactly the same way as a complete result set. However, this limited set represents a random excerpt from the potential total result set. It is therefore not the “first” x records in relation to any sorting.

Preselections

The limit does not affect the execution of preselections, as the intermediate result of a preselection does not allow any conclusions to be drawn about the expected final result set. This also applies to a selection that works exclusively with preselections and whose result is unsorted. Since only key values and no data records are read in this case, the limit does not apply.

Limit = 0

The specification of 0 as the limit is permitted, in which case the selection ends with the first record found. This can be useful if the application wants to determine whether there is a matching record in a table at all. In this case, it may not be necessary to read all records in the table; the selection ends with the first match.

The limit can be used with all options except _SelUnion, _SelInter and _SelMinus, so it can also be used with server-side execution (_SelServer).

Klicken Sie hier, um die Nutzungsbedingungen für unseren Blog zu lesen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Leave the field below empty!

Requests, questions or feedback are welcome:

Terms of use of the comment function in the blog

1. General information

Vectorsoft AG (‘Provider’) provides a public blog for Internet users (‘Users’) on the vectorsoft.de website. The public blog is intended for the exchange of information and ideas. Users who participate with contributions and comments undertake to comply with the blog terms of use and are responsible for the accuracy, appropriateness and freedom from legal infringements of their contributions. By using the comment function in our blog, you accept these terms of use.

2. Netiquette

We ask you to refrain from personal attacks and provocations based on other opinions. Please argue objectively and maintain a constructive discussion culture. Your comment should always be related to the topic in question in order to avoid digressions into other topics. Posting the same comment or several similar comments more than once is not permitted.

3. Prohibition of illegal content

By submitting your comment, you confirm that you are not violating any copyrights or other rights of third parties. Inciting, racist statements, instructions for criminal offences and their glorification, depictions of violence, pornographic content and statements that violate personal rights are prohibited.

4. No advertising

The use of the comment function is not permitted for commercial or party-political purposes. Advertising contributions of any kind will be deleted immediately.

5. Details of the name

When entering your name, pay attention to the principles mentioned above.

6. Source references

If you intend to publish quotes or contributions from third parties, please indicate the respective sources and explain how they relate to the blog post.

7. Violation of the terms of use

Posts that violate this policy will be deleted immediately. If you notice any violations yourself, please send us the link to the comment in question by e-mail to . We expressly point out that we will exclude individual users in the event of repeated or serious violations of these terms of use.

As of: Sept. 2024

Get your Trial Version now!

Test yeet free of charge

IHRE EVALUIERUNGSLIZENZ - JETZT ANFORDERN!

TESTEN SIE DIE CONZEPT 16 VOLLVERSION - UNVERBINDLICH und KOSTENFREI

Subscribe to our newsletter

[cleverreach_signup]
WordPress Cookie Notice by Real Cookie Banner