English 中文(简体)
我如何生成复制副本中独有的号码? [重复]
原标题:How do I generate the unique number in replication copy? [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
How to create an auto incrementing field in lotus domino?

We are generating the unique sequence number for each document like an employee ID. But user can enroll the information in different locations. So we replicate the database into many. Problem is, Number is generating. But the sequence number gets duplicated when the user works on different replicas.

最佳回答

如果必须使用顺序编号,则数据库在创建文档时应为文档指定一个临时编号,然后只有一个服务器执行一个代理人,该代理人每天或更经常地为文档指定永久顺序编号。

然而,大部分时间人们只需要为文档指定 UIQUE 编号。 使用 @ unique 公式生成一个独特的字符串来识别文档。 或者, 您可以用它来指定包含服务器名称的序列号作为前缀。 您可以使用日期时间和服务器或用户信息的组合来创建一个独特的标识符 。

我的经验是,大多数时候,人们说自己有顺序数字的要求,他们错了,他们只需要独特的数字,并且认为顺序是这样做的唯一途径。

问题回答

暂无回答




相关问题
Where are the javadocs for Lotus Notes.jar?

I need to use Lotus Notes/Domino as a data source from a Java application. The documentation at IBM says that the Notes.jar contains everything I will need, but where are the javadocs?

Is Interop.Domino dll thread safe?

I am using Interop.Domino dll version 1.2 in c# application, and using multithreading to access multiple NSF file at same time by creating new session for each thread created (Max 5 threads at a time)....

C#和Lotus Notes附录一

我正在使用C#,并需要附上一张空白(shortcut/link)档案和电子邮件给一个彩票账户。 问题是一对一幅通用形象的不实之词,没有像......那样显示双fold。

How to maintain Lotus Notes Version ? C#

I made one product which is retrieving attachment from mails and saving it on particular folder. But problem i am facing is it is not working in 8.0 version. I did development on Lotus Notes 8.5 ...

How to Edit NSF file using c#?

I want to programaticaly change some values to NSF item and then want to save it.(i.e to edit NSF File and then save the editions) for example: I want to set Sender name of all mails to "preeti@abc....

热门标签