TMGDBSession Cache (V1.0 CB3 CB4 CB5 D2 D3 D4 D5) |
|
領航天使
站長 發表:12216 回覆:4186 積分:4084 註冊:2001-07-25 發送簡訊給我 |
名稱:TMGDBSession Cache
版本:V1.0
原始程式:有(Source)
適用:(CB3)(CB4)(CB5)(D2)(D3)(D4)(D5)
版權種類:免費軟體(Freeware)
作者:Martin Geier
說明:
TMGDBSessionCache caches database sessions along with a TDatabase component.
TMGDBSessionCache was written for 3-Tier database applications where
normally each new thread in the middle tier has to create a new session and
connect to the database. Connecting to the database, especially to SQL servers,
takes a certain amount of time. If an application constists of several remote
datamodules that each serve one client a lot of connecting/disconnecting
from the database is necessary.
MGDBSessionCache solves this problem by creating a certain amount of sessions along with TDatabase components attached to the sessions at program start. Threads can request a session from TMGDBSessionCache and will get the session name and the database name to be used in return. The returned session is already connected to the database and ready to use. When a thread has done its database jobs and no longer needs a session, the thread releases the session so TMGDBSessionCache can reuse it.
------
~~~Delphi K.Top討論區站長~~~ |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |