📄 intro.so
字号:
m4_comment([$Id: intro.so,v 1.5 2006/11/13 18:05:03 bostic Exp $])m4_ref_title(Sequences, Introduction to sequences, introduction to @sequences, txn/limits, rpc/intro)m4_p([dnlSequences provide an arbitrary number of persistent objects that returnan increasing or decreasing sequence of integers. Opening a sequencehandle associates it with a record in a database. The handle canmaintain a cache of values from the database so that a database updateis not needed as the application allocates a value.])m4_p([dnlA sequence is stored as a record pair in a database. The database maybe of any type, but may not have been configured to support duplicatedata items. The sequence is referenced by the key used when thesequence is created, therefore the key must be compatible with theunderlying access method. If the database stores fixed-length records,the record size must be at least 64 bytes long.])m4_p([dnlSince a sequence handle is opened using a database handle, the use oftransactions with the sequence must follow how the database handle wasopened. In other words, if the database handle was opened within atransaction, operations on the sequence handle must use transactions.Of course, if sequences are cached, not all operations will actuallytrigger a transaction.])m4_p([dnlFor the highest concurrency, caching should be used and them4_ref(DB_AUTO_COMMIT) and m4_ref(DB_TXN_NOSYNC) flags should bespecified to the m4_refT(seq_get) call. If the allocation of thesequence value must be part of a transaction, and rolled back if thetransaction aborts, then no caching should be specified and thetransaction handle must be passed to the m4_ref(seq_get) method.])include(seq/m4.methods)m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -