Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Q: Resource status on failure exit.
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

bjlt
Senior Member

1144 Posts

Posted - 20 March 2003 :  13:22:22  Show Profile
I was about to go out when wrote the message.

it's slower when using method as
open db
open recordset1
close recordset1
close db
open db
open recordset2
close recordset2
close db

I'll do more test later.

Edited by - bjlt on 20 March 2003 13:30:39
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 21 March 2003 :  04:43:46  Show Profile
Each case may need different design considerations. They depend on:
1) database structure
2) indexes
3) SQL code that is run (Select)
4) expected number of records
5) expected number of hits
6) ..

The test setup is also important of course. The code versions provided is optimized for scalability, which will work better on thousands of records but may work slower if you have a couple records...

It is similar to sorting/searching algorithms. Sometimes it is more efficient not to sort and access the record with linear search, a case for less than ten records...

Without decent tests you would not know which performs better.

Stop the WAR!
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07