Fujitsu UDS/SQL V2.5 Manual Do Utilizador

Página de 324
SSL
Linkage methods
U929-J-Z125-9-76
  
153
D
ok
us
c
h
abl
on
en
 1
9x
24 V
e
rs
ion
 7
.3
us
 f
ü
r F
ram
eM
ak
er
 V
7
.x
v
o
m
 1
4.
02
.2
00
7
©
 c
o
gni
tas
 Gm
b
H
 20
01-
20
07
24
. Ok
tobe
r 20
07
  S
ta
nd
 0
8:
58
.5
5
P
fa
d:
 G
:\
v
og
t\
fs
c
\ud
s
\M
anu
al
e
\e
n\
ud
s
e
nt
_e\
u
ds
ent
.k
0
5
5.3.2
Assessing pointer array, list and chain 
The time required for the execution of a program depends on the storage modes defined for 
the set occurrences. 
This section compares retrieval and updating operations when using pointer arrays, lists 
and chains. The retrieval operations are subdivided into sequential and direct accesses. 
Updating operations dealt with are insertion and deletion. 
Pointer arrays 
Sequential access
The pointer array must be present in memory. This is almost always the case whenever 
a member record of the set occurrence has already been accessed via the set. One 
entry in the pointer array must then be read before the associated record can be read. 
The number of disk accesses depends on how records are distributed over the pages 
and can be reduced by optimizing the placement of the records (see the sections 
 and 
). 
Direct access 
ORDER IS SORTED INDEXED: All levels of the pointer array must be in memory. 
The higher levels are used to select the number of the page containing the entry of 
the record to be found. One disk access is required for each level of the table. 
ORDER IS LAST/FIRST/NEXT/PRIOR: UDS/SQL must search the set occurrence 
sequentially until the desired record is found. This may require a considerable 
number of disk accesses. 
Insertion 
In order to insert an entry, the place of insertion in the pointer array must be determined. 
If ORDER IS SORTED INDEXED, this is possible via direct access.
If ORDER IS LAST/FIRST, UDS/SQL can directly access the last or first table page 
respectively. If ORDER IS NEXT/PRIOR, the place of insertion is found via the currency 
information or by sequentially reading the pointer array. 
Writing the record usually requires a further disk access. 
Deletion
The record and its associated entry in the pointer array must be deleted. 
Result
MODE IS POINTER-ARRAY allows speedy sequential and direct access and updating 
operations. The response times are largely independent of the order of the sets and the 
size of the set occurrences.