Constraints

Geschätzte Lektüre: 2 Minuten

[Admin]->[Tools]->[Constraints] displays the indices used in LIMBAS. Use the tab to select:

  • Indices
  • Foreign Keys
  • Primary Keys
  • Unique Constraints

Indices

Fig.: Indices

Indexing can improve the performance in searching or retrieving data. Displayed are manually created, as well as the automatically created indices. The displayed list can be sorted by column. An index can be deleted or a new one created. The column ‘used’ shows the current scans on this index. If, after a longer period of observation, the value is still zero, the index can be deleted. Unused indices can have a negative influence on the performance. You should not rush however, to delete an index, because it only is used effectively when sufficient data are available and a search has taken place. An index can be renewed. This can speed up a fragmented index, depending on the database.

Limbas automatically creates for all Links an index for the following fields:

  • ID
  • VERKN_ID
  • SORT

Tabelle_A.ID -> Verkn_Tabelle.ID & Verkn_Tabelle.VERKN_ID -> Tabelle_B.ID

The SORT field is very important, because this index improves the performance for the creation of new data records in this table. If many links in this table are created at once the index is very advantageous.

During LIMBAS installation, indices are also created for the following table fields:

TableField
lmb_gtab_groupdatdat_id
lmb_indize_dref
lmb_indize_dwid
lmb_indize_dsid
lmb_indize_dsref
lmb_indize_dswid
lmb_indize_dssid
lmb_indize_fsid
lmb_indize_fsid
lmb_indize_fsid
lmb_indize_fsfid
lmb_indize_fswid
lmb_indize_fssid
lmb_indize_wwid
lmb_indize_wmetaphone
lmb_select_ddat_id
lmb_select_dw_id
lmb_select_wsort
lmb_select_wpool
lmb_select_wwert

Foreign Keys

Fig.: foreign keys

Foreign keys link to primary keys of another table. When linking two data sets, Limbas automatically creates a link table in the background. In this table, two foreign keys will be created, if you activated this function when creating the link (see referential integrity).

Primary Keys

Fig.: primary keys

The primary key identifies each dataset of a table. e.g. when two customers have the same name, you can distinguish them from each other using the primary key.

Unique Constraints

Fig.: unique constraints

For 1:n links, instead of an index for the field VERKN_ID, a unique constraint (which already contains an index) will be created.

Share this Doc

Constraints

Or copy link

CONTENTS