LastDocId

LastDocId

Information processing systems commonly use unique identifiers to refer to individual items (e.g. each record in a database table, each document in a set of documents). When a new item is created, its identifier (Id) is often computed by incrementing the identifier of the last document created. LastDocId "(last document id)" is a usual abbreviation to designate the object (for instance a variable, a node or a record) that stores such value independently of the data themselves.

Each time a new Id is required, two values are computed:

* LastDocId = LastDocId + 1
* Id = LastDocId

No matter what subsequently happens of the item designated by Id - in particular if it is deleted -, the routine provides the system with a new Id with no risk of overriding an older value.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”