There is no other code in the ajax_taf at all?

 

I have written similar applications in Witango, Ajax updating a choicelist
based on user input selected from my database (also SQL 2005) and I do see
execution times below 50 ms. The web page updates nearly instantly. I
suspect that there is optimization that can be done in your TAF. I don't,
however, have experience with .NET so I can't be sure that Witango is always
going to be slower than it or not.

 

Robert

 

  _____  

From: Ted Wolfley [mailto:[email protected]] 
Sent: Tuesday, October 06, 2009 10:54 AM
To: [email protected]
Subject: RE: Witango-Talk: autocomplete speed comparison

 

Witango speed stayed about the same on repeat queries and the datsourcelife
is set at the default.

The ajax taf is tiny and using the Direct_DBMS for the query via a tcf.  The
database connection is opened at login to the site. 

 

I guess we will go with the .NET version until we see what Witango 6 has to
offer.  

 

Thanks

 

Ted

 

  _____  

From: Robert Garcia [mailto:[email protected]] 
Sent: Tuesday, October 06, 2009 10:12 AM
To: [email protected]
Subject: Re: Witango-Talk: autocomplete speed comparison

 

ODBC and persistent connections would be my guess, as long as ALL OTHER
variables are equal. Repeat the query a few times, and see if it is faster.
Witango is most likely using ODBC connector and .NET is using a more native,
optimized connection. Witango will always take longer on its FIRST query to
a connection, due to the overhead of opening a connection from scratch.
Witango will then hold that connection in memory and try to reuse it, saving
time on subsequent queries. This seems efficient, but it actually ends up
wasting memory on both the witango side and especially the db server side.

 

Check the documentation on the datasourcelife configuration variable.

 

-- 

 

Robert Garcia

President - BigHead Technology

VP Application Development - eventpix.com

13653 West Park Dr

Magalia, Ca 95954

ph: 530.645.4040 x222 fax: 530.645.4040

[email protected] - [email protected]

http://bighead.net/ - http://eventpix.com/

 

On Oct 6, 2009, at 6:44 AM, Ted Wolfley wrote:

 

Hi,

 

We created a simple ajax autocomplete retrieving name and company from a sql
server 2005 table on another server.  We compared 2 different options.

 

Both servers are Windows 2003 32-bit

 

Using Witango 5.5, the query request took 528ms.

Using ASP.Net, the query request took 34 ms

 

The sql statement is the same for both queries

 

Wondering if someone could give an explanation why there is so much
difference in speed and is there a way to speed up the Witango query.

 

Ted Wolfley 
Lead Internet and Database Programmer
The Ogden Group of Rochester 
phone: (585) 321 1060 x23 
fax: (585) 321 0043 
 <mailto:[email protected]> [email protected]

 <http://www.ogdengroup.com/> www.ogdengroup.com

 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

 



________________________________________________________________________

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to