CN100407623C - A method and system for updating user data in a communication system - Google Patents
A method and system for updating user data in a communication system Download PDFInfo
- Publication number
- CN100407623C CN100407623C CN2005100065825A CN200510006582A CN100407623C CN 100407623 C CN100407623 C CN 100407623C CN 2005100065825 A CN2005100065825 A CN 2005100065825A CN 200510006582 A CN200510006582 A CN 200510006582A CN 100407623 C CN100407623 C CN 100407623C
- Authority
- CN
- China
- Prior art keywords
- user
- data
- server
- client
- serial number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000006854 communication Effects 0.000 title claims abstract description 22
- 238000004891 communication Methods 0.000 title claims abstract description 21
- 230000004048 modification Effects 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明适用于数据通信领域,提供了一种通信系统中用户数据更新的方法及系统,通过设置用户数据中组数据的数据标识和用户数据的用户标识双层标识,优化用户数据的更新处理。当客户端请求更新用户数据时,在给服务器的用户数据更新请求中只需要附加一个用户数据的客户端用户标识,服务器通过比较服务器端的数据标识与客户端的用户标识,即可判断出需要更新的组数据,在需要更新用户数据时选择服务器端数据标识优于客户端用户标识的组数据发送给客户端,完成客户端用户数据的更新。利用本发明,能够减少服务器的运行开销,提高服务器的运行性能,同时减少用户数据更新的时间,提高通信效率。
The present invention is applicable to the field of data communication, and provides a method and system for updating user data in a communication system, and optimizes update processing of user data by setting a double-layer identification of group data in user data and user identification of user data. When the client requests to update user data, it only needs to add a client user ID of the user data in the user data update request to the server, and the server can determine which one needs to be updated by comparing the data ID on the server side with the user ID on the client side Group data, when the user data needs to be updated, select the group data whose server-side data identifier is better than the client-side user identifier and send it to the client to complete the update of the client-side user data. The invention can reduce the running cost of the server, improve the running performance of the server, reduce the time for updating user data, and improve the communication efficiency.
Description
技术领域 technical field
本发明涉及数据通信领域,尤其涉及在数据通信过程中更新用户数据的方法及系统。The invention relates to the field of data communication, in particular to a method and system for updating user data during data communication.
背景技术 Background technique
在数据通信中,用户往往有许多数据,这些用户数据可以分为若干组,例如用户的通讯录数据可以包含多组数据,每一组数据对应一个联系人的信息。如图1所示,用户在客户端101保存有本地的用户数据,服务器102以用户名或用户号码为索引保存了各个用户的用户数据。在通信过程中,当用户通过不同的多个客户端101,如客户端A和客户端B分别进行通信时,每个客户端101上的用户数据与服务器102上的用户数据可能都不完全相同,服务器102上保存了最新的用户数据,当用户通过客户端101登录服务器102时,存在客户端101上保存的用户数据过时的情况,这时就需要客户端101到服务器102上下载最新的用户数据,进行数据更新。In data communication, a user often has a lot of data, which can be divided into several groups. For example, a user's address book data can contain multiple groups of data, and each group of data corresponds to the information of a contact. As shown in FIG. 1 , the user stores local user data on the
为了提高用户数据的更新效率,降低系统的通信负荷,一般使用序列号技术或者时间戳技术来标识数据的新旧程度,数据的序列号越大或者时间戳越新,则表示用户数据的内容越新,当客户端101需要更新用户数据时,不需要从服务器102上下载所有的用户数据,只需要向服务器102提交用户数据中每组数据的序列号或者时间戳,服务器102比较每组数据的序列号或者时间戳,只把序列号大于或者时间戳新于客户端101提交的序列号或者时间戳的数据发送给客户端101,完成用户数据的更新,这样在一定程度上提高了用户数据更新的效率。In order to improve the update efficiency of user data and reduce the communication load of the system, serial number technology or timestamp technology is generally used to identify the newness of the data. The larger the serial number of the data or the newer the timestamp, the newer the content of the user data. , when the
但是,在用户的数据量很大或者用户数据更新频繁时,客户端101向服务器102传送的序列号或者时间戳的量就会很大,这样就会导致服务器102产生大的运行开销和通信负载,延长了数据更新时间,在一定程度上降低了通信性能,给用户的通信造成不便。However, when the amount of user data is large or the user data is updated frequently, the amount of serial numbers or time stamps transmitted by the
发明内容 Contents of the invention
本发明的目的在于解决现有技术中存在的用户数据更新时需要传送和比较大量的序列号或时间戳,从而增加系统的运行开销,降低用户数据更新效率的问题。The purpose of the present invention is to solve the problems existing in the prior art that a large number of serial numbers or time stamps need to be transmitted and compared when user data is updated, thereby increasing system operating overhead and reducing user data update efficiency.
为了实现发明目的,本发明提供了一种通信系统中用户数据更新的方法,所述用户数据包括多个组数据,每个组数据包含一个数据标识,所述数据标识随相应组数据的更新而更新,设置一个用户标识,用于标识所述用户数据,所述方法包括:In order to achieve the purpose of the invention, the present invention provides a method for updating user data in a communication system, the user data includes a plurality of group data, each group data contains a data identifier, and the data identifier changes with the update of the corresponding group data Update, set a user identifier for identifying the user data, the method includes:
A.接收经修改的组数据,更新所述组数据所隶属的用户数据的服务器端用户标识,并将所述组数据的服务器端数据标识更新为所述更新后的服务器端用户标识;A. Receive the modified group data, update the server-side user ID of the user data to which the group data belongs, and update the server-side data ID of the group data to the updated server-side user ID;
B.将客户端发送的用户数据更新请求中附加的客户端用户标识与隶属于所述用户数据的所有组数据的服务器端数据标识进行比较,选择服务器端数据标识优于客户端用户标识的组数据发送给客户端。B. Compare the client user ID attached to the user data update request sent by the client with the server-side data IDs of all group data belonging to the user data, and select the group whose server-side data ID is better than the client user ID Data is sent to the client.
在所述步骤A之后,所述方法进一步包括:After said step A, said method further comprises:
C.在接收客户端的用户数据更新请求之后,将所述用户数据的服务器端的相应用户标识与所述用户数据更新请求中附加的客户端用户标识进行比较,当服务器端用户标识优于客户端用户标识时,执行步骤B,否则结束。C. After receiving the user data update request from the client, compare the corresponding user ID on the server side of the user data with the client user ID attached in the user data update request, when the server-side user ID is better than the client user ID When identified, execute step B, otherwise end.
在所述步骤B之后,所述方法进一步包括:After said step B, said method further comprises:
D.将服务器端数据标识优于客户端用户标识的组数据发送给客户端后,更新客户端用户标识为客户端当前的最优数据标识。D. After sending the group data whose server-side data identifier is better than the client user identifier to the client, update the client user identifier to be the current optimal data identifier of the client.
所述用户标识为用户序列号,所述数据标识为数据序列号,所述步骤A进一步包括:The user identification is a user serial number, and the data identification is a data serial number, and the step A further includes:
A1.接收经修改的组数据,将所述组数据所隶属的用户数据的服务器端用户序列号加1,并将所述组数据的服务器端数据序列号更新为所述更新后的服务器端用户序列号;A1. Receive the modified group data, add 1 to the server-side user serial number of the user data to which the group data belongs, and update the server-side data serial number of the group data to the updated server-side user serial number;
所述步骤B进一步包括:Said step B further comprises:
B1.将客户端发送的用户数据更新请求中附加的客户端用户序列号与隶属于所述用户数据的所有组数据的服务器端数据序列号进行比较,选择服务器端数据序列号大于客户端用户序列号的组数据发送给客户端。B1. Compare the client user serial number attached to the user data update request sent by the client with the server-side data serial numbers of all group data belonging to the user data, and select the server-side data serial number to be greater than the client user serial number The group data of the number is sent to the client.
在所述步骤A1之后,所述方法进一步包括:After the step A1, the method further includes:
C1.在接收客户端的用户数据更新请求之后,将所述用户数据的服务器端的用户序列号与所述用户数据更新请求中附加的客户端用户序列号进行比较,当服务器端用户序列号大于客户端用户序列号时,执行步骤B1,否则结束。C1. After receiving the user data update request from the client, compare the user serial number of the server side of the user data with the client user serial number attached in the user data update request, when the server user serial number is greater than that of the client If the user serial number is set, execute step B1, otherwise end.
在所述步骤B1之后,所述方法进一步包括:After the step B1, the method further includes:
D1.将服务器端数据序列号大于客户端用户序列号的组数据发送给客户端后,更新客户端用户序列号为客户端当前的最大数据序列号。D1. After sending the group data whose server-side data serial number is greater than the client user serial number to the client, update the client user serial number to the current maximum data serial number of the client.
所述用户标识为用户时间戳,所述数据标识为数据时间戳,所述步骤A进一步包括:The user identifier is a user timestamp, and the data identifier is a data timestamp, and the step A further includes:
A2.接收经修改的组数据,将所述组数据所隶属的用户数据的服务器端用户时间戳更新为当前的系统时间,并将所述组数据的服务器端数据时间戳更新为所述更新后的服务器端用户时间戳;A2. Receive the modified group data, update the server-side user timestamp of the user data to which the group data belongs to the current system time, and update the server-side data timestamp of the group data to the updated The server-side user timestamp of ;
所述步骤B进一步包括:Said step B further comprises:
B2.将客户端发送的用户数据更新请求中附加的客户端用户时间戳与隶属于所述用户数据的所有组数据的服务器端数据时间戳进行比较,选择服务器端数据时间戳新于客户端用户时间戳的组数据发送给客户端。B2. Compare the client user timestamp attached in the user data update request sent by the client with the server-side data timestamp of all group data belonging to the user data, and select the server-side data timestamp newer than the client user Timestamp the group data sent to the client.
在所述步骤A2之后,所述方法进一步包括:After the step A2, the method further includes:
C2.在接收客户端的用户数据更新请求之后,将所述用户数据的服务器端的用户时间戳与所述用户数据更新请求中附加的客户端用户时间戳进行比较,当服务器端用户时间戳新于客户端用户时间戳时,执行步骤B2,否则结束。C2. After receiving the user data update request from the client, compare the user timestamp on the server side of the user data with the client user timestamp attached in the user data update request, when the server-side user timestamp is newer than the client When the time stamp of the end user is obtained, execute step B2, otherwise end.
在所述步骤B2之后,所述方法进一步包括:After the step B2, the method further includes:
D2.将服务器端数据时间戳大于客户端用户时间戳的组数据发送给客户端后,更新客户端用户时间戳为客户端当前的最新数据时间戳。D2. After sending the group data whose server-side data timestamp is greater than the client user timestamp to the client, update the client user timestamp to the latest current data timestamp of the client.
所述组数据的修改包括删除组数据、添加组数据或者编辑组数据的内容。The modification of the group data includes deleting the group data, adding the group data or editing the content of the group data.
为了更好地实现发明目的,本发明进一步提供了一种通信系统中用户数据更新的系统,所述用户数据包括多个组数据,每个组数据包含一个数据标识;所述系统包括用户数据库,用于存储每个用户的用户数据,以及所述数据标识,所述用户数据包含一个用户标识,所述系统进一步包括:In order to better realize the purpose of the invention, the present invention further provides a system for updating user data in a communication system, the user data includes a plurality of group data, and each group data includes a data identifier; the system includes a user database, For storing user data of each user, and the data identifier, the user data includes a user identifier, and the system further includes:
标识更新器,用于在收到客户端修改后的组数据后,执行如下操作:The identity updater is used to perform the following operations after receiving the modified group data from the client:
(1)更新所述组数据所隶属的用户数据的服务器端用户标识;(1) updating the server-side user identification of the user data to which the group data belongs;
(2)更新所述组数据的数据标识为所述更新后的服务器端用户标识;(2) updating the data identifier of the group data to be the updated server-side user identifier;
数据选择器,用于将服务器端数据标识与客户端用户标识进行比较,选择服务器端数据标识优于客户端用户标识的组数据;A data selector for comparing the server-side data ID with the client-side user ID, and selecting group data whose server-side data ID is better than the client-side user ID;
通信接口,用于接收客户端提交的修改后的组数据,以及用户数据更新请求,并向客户端发送更新的组数据。The communication interface is used to receive the modified group data submitted by the client and the user data update request, and send the updated group data to the client.
所述系统进一步包括:The system further includes:
标识比较器,用于将服务器端用户标识和客户端用户数据更新请求中附加的客户端用户标识进行比较,当服务器端用户标识优于客户端用户标识时,通知服务器更新用户数据。The ID comparator is used to compare the server-side user ID with the client-side user ID attached in the client-side user data update request, and notify the server to update the user data when the server-side user ID is better than the client-side user ID.
所述用户标识为用户序列号,所述数据标识为数据序列号;The user identification is a user serial number, and the data identification is a data serial number;
所述标识更新器,用于在收到客户端修改后的组数据后,执行如下操作:The identity updater is configured to perform the following operations after receiving the modified group data from the client:
(1)将所述组数据所隶属的用户数据的服务器端用户序列号加1;(1) Add 1 to the server-side user serial number of the user data to which the group data belongs;
(2)更新所述组数据的数据序列号为所述更新后的服务器端用户序列号;(2) updating the data serial number of the group data to be the updated server-side user serial number;
所述数据选择器,用于将服务器端数据序列号与客户端用户序列号进行比较,选择服务器端数据序列号大于客户端用户序列号的组数据。The data selector is used to compare the server-side data serial number with the client-side user serial number, and select group data whose server-side data serial number is greater than the client-side user serial number.
所述系统进一步包括:The system further includes:
标识比较器,用于将服务器端用户序列号和客户端用户数据更新请求中附加的客户端用户序列号进行比较,当服务器端用户序列号大于客户端用户序列号时,通知服务器更新用户数据。The identity comparator is used to compare the server-side user serial number with the client-side user serial number attached in the client user data update request, and notify the server to update the user data when the server-side user serial number is greater than the client user serial number.
所述用户标识为用户时间戳,所述数据标识为数据时间戳;The user identifier is a user timestamp, and the data identifier is a data timestamp;
所述标识更新器,用于在收到客户端修改后的组数据后,执行如下操作:The identity updater is configured to perform the following operations after receiving the modified group data from the client:
(1)将所述组数据所隶属的用户数据的服务器端用户时间戳更新为服务器当前的系统时间;(1) updating the server-side user timestamp of the user data to which the group data belongs to the current system time of the server;
(2)更新所述组数据的数据时间戳为所述更新后的服务器端用户时间戳;(2) updating the data timestamp of the group data to be the updated server-side user timestamp;
所述数据选择器,用于将服务器端数据时间戳与客户端用户时间戳进行比较,选择服务器端数据时间戳新于客户端用户时间戳的组数据。The data selector is used to compare the server-side data time stamp with the client user time stamp, and select the group data whose server-side data time stamp is newer than the client user time stamp.
所述系统进一步包括:The system further includes:
标识比较器,用于将服务器端用户时间戳和客户端用户数据更新请求中附加的客户端用户时间戳进行比较,当服务器端用户时间戳大于客户端用户时间戳时,通知服务器更新用户数据。The identity comparator is used to compare the server-side user timestamp with the client-side user timestamp attached in the client-side user data update request, and when the server-side user timestamp is greater than the client-side user timestamp, the server is notified to update the user data.
所述组数据的修改包括删除组数据、添加组数据或者编辑组数据的内容。The modification of the group data includes deleting the group data, adding the group data or editing the content of the group data.
由上可知,利用本发明可以有效地减少服务器的运行开销,提高服务器的运行性能,同时减少用户数据更新的时间,提高通信效率。It can be seen from the above that the operating cost of the server can be effectively reduced by using the present invention, the operating performance of the server can be improved, the time for updating user data can be reduced, and the communication efficiency can be improved.
附图说明 Description of drawings
图1是用户数据更新的系统构成示意图;Figure 1 is a schematic diagram of the system composition of user data update;
图2是本发明中用户数据更新的实现流程图;Fig. 2 is the implementation flowchart of user data update in the present invention;
图3是本发明中采用序列号方式时用户数据更新的实现流程图;Fig. 3 is the implementation flowchart of user data update when adopting serial number mode among the present invention;
图4是本发明中采用时间戳方式时用户数据更新的实现流程图;Fig. 4 is the implementation flowchart of user data update when adopting time stamp mode among the present invention;
图5是本发明提供的用户数据更新系统的结构图。Fig. 5 is a structural diagram of the user data updating system provided by the present invention.
具体实施方式 Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明中,采用对用户数据进行双重标识的方法,提高用户数据更新的效率,即在对用户数据中的每个组数据设置一个数据标识的同时,对每个用户赋予一个用户标识,用于标识隶属于该用户的用户数据,用户标识和数据标识可以是序列号,或者时间戳,用于标识数据的新旧程度。In the present invention, the method of double-identifying user data is adopted to improve the efficiency of updating user data, that is, while setting a data identifier for each group data in user data, each user is assigned a user identifier for Identify the user data belonging to the user. The user ID and data ID can be serial numbers or timestamps, which are used to identify the newness of the data.
参考图1,当客户端101修改用户数据中的组数据,并向服务器102提交后,服务器102同时更新修改后的组数据所隶属的用户数据的服务器端用户标识和该组数据的数据标识。客户端101请求更新用户数据时,在给服务器102的用户数据更新请求中只附加一个用户数据的客户端用户标识,不需要将所有的数据标识发送给服务器102,服务器102将服务器端用户标识与客户端用户标识进行比较,判断是否需要客户端101更新用户数据,在判断客户端101需要更新用户数据时,不需要对所有组数据的服务器端数据标识和客户端数据标识进行比较,只需要将客户端用户标识与组数据的服务器端数据标识进行比较,选择将服务器端数据标识优于客户端用户标识的组数据发送给客户端101,从而完成客户端101用户数据的更新。Referring to FIG. 1, when the
图2示出了本发明数据更新的实现流程图,在本发明中,用户完成对用户数据中的组数据的修改后,服务器102接收客户端101提交的修改后的组数据(S201);Fig. 2 shows the implementation flow chart of the data update of the present invention, in the present invention, after the user finishes modifying the group data in the user data, the
服务器102收到客户端提交的修改后的组数据后,保存该组数据,同时,更新该用户数据的服务器端用户标识(S202);After the
然后,服务器102更新被修改后的组数据的服务器端数据标识为更新后的服务器端用户标识(S203);Then, the
当用户需要更新用户数据时,客户端101向服务器发出用户数据更新请求,请求中附加有该用户数据的客户端用户标识,服务器102接收到客户端提交的用户数据更新请求后,提取客户端用户标识(S204);When the user needs to update the user data, the
服务器102将用户数据的服务器端用户标识与客户端用户标识进行比较,判断客户端101是否需要更新用户数据,如果服务器端用户标识优于客户端用户标识,则表明客户端101的用户数据需要更新,执行步骤S206;否则,表明客户端101的用户数据不需要更新,服务器102向客户端101发送用户数据不需要更新的消息(S205);The
在判断客户端101需要更新用户数据时,服务器102将客户端用户标识与用户数据库中保存的该用户数据的所有组数据的服务器端数据标识进行比较,确定需要更新的组数据(S206);When judging that the
服务器102选择服务器端数据标识优于客户端用户标识的组数据,将其发送给客户端101(S207);The
客户端101接收并保存服务器102发送的组数据后,服务器102将用户数据的客户端用户标识为客户端当前的最优数据标识(S208)。After the
作为本发明的一个优选实施例,用户标识和数据标识可以采用序列号的方式,当采用序列号方式时,每个用户的用户数据有一个用户序列号,隶属于该用户数据的每个组数据有一个数据序列号。As a preferred embodiment of the present invention, user identification and data identification can be in the form of a serial number. When the serial number is used, each user's user data has a user serial number, and each group data belonging to the user data There is a data serial number.
图3示出了在用户标识和数据标识采用序列号方式时,用户数据更新时的详细过程:Figure 3 shows the detailed process of updating user data when the user ID and data ID adopt the serial number method:
服务器102接收用户修改后的组数据,保存该组数据(S201);The
服务器102将该组数据所隶属的用户数据的服务器端用户序列号加1(S302);The
然后,服务器102更新被修改的组数据的服务器端数据序列号为该加1后的服务器端用户序列号(S303);Then, the
当用户需要更新用户数据时,客户端101向服务器102发出用户数据更新请求,服务器102提取客户端用户数据更新请求中附加的该用户数据的客户端用户序列号(S304);When the user needs to update the user data, the
服务器102将用户数据的服务器端用户序列号与客户端用户序列号进行比较,判断客户端101是否需要更新用户数据,如果服务器端用户序列号大于客户端用户序列号,则表明客户端101的用户数据需要更新,执行步骤S306;否则,表明客户端101的用户数据不需要更新,服务器102向客户端101发送用户数据不需要更新的消息(S305);The
在判断客户端需要更新用户数据时,服务器102将客户端用户序列号与用户数据库中保存的该用户数据的所有组数据的服务器端数据序列号进行比较,确定需要更新的组数据(S306);When judging that the client needs to update the user data, the
服务器102选择服务器端数据序列号大于客户端用户序列号的组数据发送给客户端101(S307);The
客户端101接收并保存服务器102发送的组数据,服务器102将客户端101保存的客户端用户序列号更新为客户端当前的最大数据序列号(S308)。The
作为本发明的另一个优选实施例,用户标识或者数据标识可以采用时间戳的方式,当采用时间戳方式时,每个用户的用户数据有一个用户时间戳,隶属于该用户数据的每个组数据有一个数据时间戳。As another preferred embodiment of the present invention, the user identification or data identification can adopt the method of time stamp. When the method of time stamp is adopted, the user data of each user has a user time stamp, and each group belonging to the user data Data has a data timestamp.
图4示出了在用户标识和数据标识采用时间戳方式时,用户数据更新时的详细过程:Figure 4 shows the detailed process of updating user data when the user ID and data ID adopt the timestamp method:
服务器102接收用户修改后的组数据,保存该组数据(S201);The
服务器102将该组数据所隶属的用户数据的服务器端用户时间戳更新为服务器102所在系统的当前时间(S402);The
然后,服务器102更新被修改的组数据的服务器端数据时间戳更新为更新后的服务器端用户时间戳(S403);Then, the
当用户需要更新用户数据时,客户端101向服务器102发出用户数据更新请求,服务器102提取客户端用户数据更新请求中附加的该用户数据的客户端用户时间戳(S404);When the user needs to update the user data, the
服务器102将用户数据的服务器端用户时间戳与客户端用户时间戳进行比较,判断客户端101是否需要更新用户数据,如果服务器端用户时间戳新于客户端用户时间戳,则表明客户端101的用户数据需要更新,执行步骤S406;否则,表明客户端101的用户数据不需要更新,服务器102向客户端101发送用户数据不需要更新的消息(S405);The
在判断客户端需要更新用户数据时,服务器102将客户端用户时间戳与用户数据库中保存的该用户数据的所有组数据的服务器端数据时间戳进行比较,确定需要更新的组数据(S406);When judging that the client needs to update the user data, the
服务器102选择服务器端数据时间戳新于客户端用户时间戳的组数据发送给客户端101(S407);The
客户端101接收并保存服务器102发送的组数据,服务器102将客户端101保存的客户端用户时间戳更新为客户端当前的最新数据时间戳(S408)。The
图5示出了实现本发明的用户数据更新系统的结构示意图,该系统包括通信接口501、标识更新器502、标识比较器503、数据选择器504以及用户数据库505,其中:Fig. 5 shows a schematic structural diagram of a user data update system implementing the present invention, the system includes a
通信接口501,用于客户端101与服务器102之间进行数据和信息交互,接收客户端101向服务器102提交的修改后的组数据,送交用户数据库505存储;将客户端101提交的用户数据更新请求发送给服务器102,同时,调用用户数据库505中数据选择器504选择更新的组数据发送给客户端101;The
标识更新器502,用于更新服务器端用户标识和数据标识,即当通信接口501收到客户端101提交的修改后的组数据时,标识更新器502更新该修改后的组数据所隶属的用户数据的服务器端用户标识,同时,更新该修改后的组数据的服务器端数据标识为该用户数据更新后的服务器端用户标识。当有新用户的用户数据保存到用户数据库505时,标识更新器502还对用户数据的用户标识和隶属于该用户数据的组数据的数据标识进行初始分配。The
标识比较器503,用于比较客户端用户标识和服务器端用户标识,当判断服务器端用户标识优于客户端用户标识时,表明客户端101需要更新用户数据,向数据选择器504发送数据更新指令;The
数据选择器504,用于在客户端101需要更新用户数据时,将客户端用户标识与隶属于用户数据的所有组数据的服务器端数据标识进行比较,选择用户数据库505中保存的用户数据中的所有数据标识优于客户端用户标识的组数据,提交客户端101进行更新;The
用户数据库505,用于存储用户数据的数据内容,以及用户数据的用户标识和隶属于该用户标识的所有组数据的数据标识。The
用户数据的用户标识以及隶属于用户数据的组数据的数据标识可以是序列号,或者时间戳等。The user identifier of the user data and the data identifier of the group data belonging to the user data may be a serial number or a time stamp.
作为本发明的一个优选实施例,当用户标识和数据标识是序列号时,当数据库505收到客户端101提交的修改后的组数据时,标识更新器502将该修改后的组数据所隶属的用户数据的服务器端用户序列号加1,同时,更新该修改后的组数据的服务器端数据序列号为该用户数据更新后的服务器端用户序列号;As a preferred embodiment of the present invention, when the user ID and data ID are serial numbers, when the
收到客户端101提交的用户数据更新请求后,标识比较器503比较客户端用户序列号和服务器端用户序列号,当判断服务器端用户序列号大于客户端用户序列号时,表明客户端101需要更新用户数据,向数据选择器504发出数据更新指令;After receiving the user data update request submitted by the
数据选择器504将客户端用户序列号与隶属于用户数据的所有组数据的服务器端数据序列号进行比较,选择用户数据库505中保存的用户数据中的所有数据序列号大于客户端用户序列号的组数据,提交客户端101进行更新。The
作为本发明的另一个实施例,用户标识和数据标识可以是时间戳,即用户数据库505收到客户端101提交的修改后的组数据时,标识更新器502将该修改后的组数据所隶属的用户数据的服务器端用户时间戳更新为服务器102所在系统的当前系统时间,同时,更新该修改后的组数据的服务器端数据时间戳为该用户数据更新后的服务器端用户时间戳;As another embodiment of the present invention, the user identifier and the data identifier may be timestamps, that is, when the
收到客户端101提交的用户数据更新请求后,标识比较器503比较客户端用户时间戳和服务器端用户时间戳,当判断服务器端用户时间戳新于客户端用户时间戳时,表明客户端101需要更新用户数据,向数据选择器504发出数据更新指令;After receiving the user data update request submitted by the
数据选择器504将客户端用户时间戳与隶属于用户数据的所有组数据的服务器端数据时间戳进行比较,选择用户数据库505中保存的用户数据中的所有数据时间戳新于客户端用户时间戳的组数据,提交客户端101进行更新。The
在发明中,用户数据组数据的修改,包括增加组数据、删除组数据、编辑修改组数据的内容等。In the invention, the modification of user data group data includes adding group data, deleting group data, editing and modifying the content of group data, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2005100065825A CN100407623C (en) | 2005-02-23 | 2005-02-23 | A method and system for updating user data in a communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2005100065825A CN100407623C (en) | 2005-02-23 | 2005-02-23 | A method and system for updating user data in a communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1825797A CN1825797A (en) | 2006-08-30 |
CN100407623C true CN100407623C (en) | 2008-07-30 |
Family
ID=36936263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2005100065825A Expired - Lifetime CN100407623C (en) | 2005-02-23 | 2005-02-23 | A method and system for updating user data in a communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100407623C (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399853B (en) * | 2007-09-24 | 2010-12-08 | 中国移动通信集团公司 | User identification server, data service processing system and method |
CN102625156B (en) * | 2011-01-27 | 2014-08-13 | 天脉聚源(北京)传媒科技有限公司 | information synchronization method and system |
CN103902576B (en) * | 2012-12-27 | 2018-04-20 | 腾讯数码(天津)有限公司 | Webpage subfield information method for refreshing and device |
CN104243533B (en) * | 2013-06-21 | 2018-03-30 | 英华达(上海)科技有限公司 | The method that data sharing and data syn-chronization are carried out in LAN |
CN106453651B (en) * | 2016-11-30 | 2020-01-31 | 中国互联网络信息中心 | A kind of RPKI database and data synchronization method |
CN114969058B (en) * | 2022-07-15 | 2025-09-23 | 济南浪潮数据技术有限公司 | Data updating method, device, equipment, and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6138141A (en) * | 1996-10-18 | 2000-10-24 | At&T Corp | Server to client cache protocol for improved web performance |
CN1288199A (en) * | 1999-09-09 | 2001-03-21 | 日本电气株式会社 | Method for updating customer's mounting data respons costomer raising events |
CN1407475A (en) * | 2001-08-24 | 2003-04-02 | 前锦网络信息技术(上海)有限公司 | Synchronous updating personnel resume database method based on internet |
WO2004001588A2 (en) * | 2002-06-20 | 2003-12-31 | International Business Machines Corporation | A system and method to re-synchronize client devices while refreshing them from a server |
US6694335B1 (en) * | 1999-10-04 | 2004-02-17 | Microsoft Corporation | Method, computer readable medium, and system for monitoring the state of a collection of resources |
CN1520562A (en) * | 2001-06-30 | 2004-08-11 | 国际商业机器公司 | System and method for a caching mechanism for a central synchronization server |
EP1489811A2 (en) * | 2003-06-19 | 2004-12-22 | Microsoft Corporation | System and method for managing cached objects using notification bonds |
-
2005
- 2005-02-23 CN CN2005100065825A patent/CN100407623C/en not_active Expired - Lifetime
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6138141A (en) * | 1996-10-18 | 2000-10-24 | At&T Corp | Server to client cache protocol for improved web performance |
CN1288199A (en) * | 1999-09-09 | 2001-03-21 | 日本电气株式会社 | Method for updating customer's mounting data respons costomer raising events |
US6694335B1 (en) * | 1999-10-04 | 2004-02-17 | Microsoft Corporation | Method, computer readable medium, and system for monitoring the state of a collection of resources |
CN1520562A (en) * | 2001-06-30 | 2004-08-11 | 国际商业机器公司 | System and method for a caching mechanism for a central synchronization server |
CN1407475A (en) * | 2001-08-24 | 2003-04-02 | 前锦网络信息技术(上海)有限公司 | Synchronous updating personnel resume database method based on internet |
WO2004001588A2 (en) * | 2002-06-20 | 2003-12-31 | International Business Machines Corporation | A system and method to re-synchronize client devices while refreshing them from a server |
EP1489811A2 (en) * | 2003-06-19 | 2004-12-22 | Microsoft Corporation | System and method for managing cached objects using notification bonds |
Also Published As
Publication number | Publication date |
---|---|
CN1825797A (en) | 2006-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109684307B (en) | Data storage method, device, equipment and storage medium | |
CN109710190B (en) | Data storage method, device, equipment and storage medium | |
CN101064630B (en) | A data synchronization method and system | |
CN110191428B (en) | Data distribution method based on intelligent cloud platform | |
CN106981024B (en) | Transaction limit calculation processing system and processing method thereof | |
CN107733957B (en) | Distributed service configuration system and version number distribution method | |
CN103780679A (en) | Long time delay remote invocation method based on HTTP protocol | |
CN108055322B (en) | Request message processing method and device | |
CN105763595A (en) | Method of improving data processing efficiency and server | |
CN106250476B (en) | A method, device and system for updating and synchronizing a whitelist | |
CN108399175A (en) | A kind of storage of data, querying method and its device | |
CN116542668A (en) | Block chain-based data processing method, equipment and readable storage medium | |
CN111385370B (en) | ID allocation method, device, storage medium and ID allocation system | |
CN109684303B (en) | Communication code attribution inquiry method and device, computer equipment and storage medium | |
CN100407623C (en) | A method and system for updating user data in a communication system | |
CN105320676A (en) | Customer data query service method and device | |
CN103905512B (en) | A kind of data processing method and equipment | |
CN102724165A (en) | Control method and device for terminal communication, and management server | |
CN101526959B (en) | Data storing method and device | |
CN106210159A (en) | A kind of domain name analytic method and equipment | |
CN112804276B (en) | Virtual broadband remote access server, control method thereof and communication system | |
CN110489222B (en) | Task scheduling method, system, cluster server and readable storage medium | |
CN111866197B (en) | Domain name resolution method and system | |
CN101383828B (en) | JavaScript object calling method, system and terminal | |
CN107181715B (en) | Service checking method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term |
Granted publication date: 20080730 |
|
CX01 | Expiry of patent term |