Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
Persistent connection/connect as necessary,what is better?

 
Post new topic   Reply to topic    dna88 Forum Index -> Databases Discussion Forum
Author Message
dude
Power User
Power User


Joined: 10 Mar 2004
Posts: 376
Location: Savar, Dhaka

Post Post subject: Persistent connection/connect as necessary,what is better? Reply with quote

What is best to use, persistent connection or connect to the database only as necessary? Which is more efficient? For example with mysql as database. What is your opinion on this?
Mon Sep 27, 04 6:39 am
Back to top
dude View user's profile Send private message Visit poster's website
dinangkur
Super Moderator
Super Moderator


Joined: 24 Mar 2004
Posts: 491
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

It's complex issue to discuss. As your platform is MySQL then I think that will be use on the web for different type transaction. Databases have a wide variety of uses and there are different requirements for online transaction processing (OLTP), online analytical processing (OLAP), and online complex processing (OLCP). Understanding these differences is important in selecting an appropriate architecture and DBMS, designing databases, and choosing an API. OLTP, OLCP, and OLAP databases each answer different questions. For example, to find orders for greater than 1,000 widgets you can use an OLTP query against an operational data store that contains current information. Amazon.com uses SQL queries against OLTP databases. OLTP programs place a premium on short-lived queries to support many concurrent database users. Transactions typically involve SQL tables containing rows of numbers and characters. If you want to find a picture containing a sunset image you can use an OLCP query against a database containing images. OLCP applications use databases that contain more complex types, such as audio, images, video, text, and spatial data. Finally, to get a list of the top-ten selling books in California for each month in the period 1995-1997, you can use an OLAP query against a multidimensional data source containing historical information. OLAP involves decision support queries against multidimensional data sets. OLAP programs typically sustain few users, doing long-running queries.

If we think from a view of access database in the back end and VB at the front. I have seen programmer to connect with database everytime they wanted to process any transaction. It costs memory and also larger process execution by the processor. So, now a days, programmer use a persistence connection at the begining of the application and kills it at the time of application termination. So, it saves memory and excess process. This is another scenario from stand-alone application view.

I hope more people will be able pour different technical information.

-DK.
_________________
...we too are stardust...
Mon Sep 27, 04 9:24 pm
Back to top
dinangkur View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dude
Power User
Power User


Joined: 10 Mar 2004
Posts: 376
Location: Savar, Dhaka

Post Post subject: Reply with quote

So basically you are saying that persistent database connection is better than non-persistent database connection. Am I right on that?
Fri Oct 01, 04 10:00 am
Back to top
dude View user's profile Send private message Visit poster's website
dinangkur
Super Moderator
Super Moderator


Joined: 24 Mar 2004
Posts: 491
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

When you're accessing a database remotely through internet then non-persistent database connection (where you just use queries to suck information from the net) else if it is a standalone program or it operates under Intranet then persistent database connection.

-DK
_________________
...we too are stardust...
Fri Oct 01, 04 8:46 pm
Back to top
dinangkur View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Databases Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group