File: README.linger

package info (click to toggle)
firebird3.0 3.0.13.ds7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,632 kB
  • sloc: ansic: 374,403; cpp: 319,973; sql: 14,691; pascal: 14,532; yacc: 7,557; fortran: 5,645; sh: 5,336; makefile: 1,041; perl: 194; sed: 83; awk: 76; xml: 19; csh: 15
file content (34 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SQL Language Extension: ALTER DATABASE SET/DROP LINGER

   Implements capability to manage database linger.

Author:
   Alex Peshkoff <peshkoff@mail.ru>

Syntax is:

   ALTER DATABASE SET LINGER TO {seconds};
   ALTER DATABASE DROP LINGER;

Description:

Makes it possible to set and clear linger value for database.

Database linger makes engine (when running in SS mode) do not close database immediately after
last attachment is closed. This helps to increase performance when database is often opened/closed
with almost zero price.

To set linger for database do:
   ALTER DATABASE SET LINGER TO 30;		-- will set linger interval to 30 seconds

To reset linger for database do:
   ALTER DATABASE DROP LINGER;			-- will make engine do not delay closing given database
   ALTER DATABASE SET LINGER TO 0;		-- another way to clean linger settings

Notice.
Sometimes it may be useful to turn off linger once to force server to close some database not
shutting it down. Dropping linger for it is not good solution - you will have to turn it on
manually later. To perform this task it's better to use GFIX utility with new switch 'NOLinger' -
it makes database be closed immediately when last attachment is gone no matter of linger interval
set in database. Next time linger will work normally. Services API is also available for it -
see details in README.services_extension).