CN106844689A - A kind of paged data synchronous method, apparatus and system - Google Patents

A kind of paged data synchronous method, apparatus and system Download PDF

Info

Publication number
CN106844689A
CN106844689A CN201710058446.3A CN201710058446A CN106844689A CN 106844689 A CN106844689 A CN 106844689A CN 201710058446 A CN201710058446 A CN 201710058446A CN 106844689 A CN106844689 A CN 106844689A
Authority
CN
China
Prior art keywords
data
timestamp
chronization
webserver
homepage
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.)
Granted
Application number
CN201710058446.3A
Other languages
Chinese (zh)
Other versions
CN106844689B (en
Inventor
周晓波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pierre Blaney Software Co Ltd
Original Assignee
Beijing Pierre Blaney Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Pierre Blaney Software Co Ltd filed Critical Beijing Pierre Blaney Software Co Ltd
Priority to CN201710058446.3A priority Critical patent/CN106844689B/en
Publication of CN106844689A publication Critical patent/CN106844689A/en
Application granted granted Critical
Publication of CN106844689B publication Critical patent/CN106844689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The invention discloses a kind of paged data synchronous method, apparatus and system, the method includes:Homepage data synchronization request is sent to the webserver, homepage data synchronization request includes that data update timestamp;The homepage data that the webserver is returned are received, homepage data update timestamp and obtained from data storage device by the webserver according to data;The data syn-chronization timestamp of the first data information in homepage data is assigned to Refresh Data timestamp, the data syn-chronization timestamp of the last item data message is assigned to data and updates timestamp;In response to the slide instruction of user, lower page of data synchronization request is sent to the webserver, lower page of data synchronization request includes that data update timestamp;The lower page of data that the webserver is returned is received, lower page of data updates timestamp and obtained from data storage device by the webserver according to data;The data syn-chronization timestamp of the last item data message in lower page of data is assigned to data and updates timestamp.

Description

A kind of paged data synchronous method, apparatus and system
Technical field
The present invention relates to Internet technical field, more particularly to a kind of paged data synchronous method, apparatus and system.
Background technology
With continuing to develop for Internet technology and hardware technology, increasing people begins to use such as smart mobile phone, flat The mobile terminals such as plate computer.Data syn-chronization is the common function of mobile terminal, and mobile terminal synchrodata from server is protected Hold the real-time and integrality of data.
The implementation method of data syn-chronization is broadly divided into two kinds, and one kind obtains data based on full dose, and mobile terminal full dose is obtained Data in server, and the data before updating in mobile terminal are covered, strategy is simple, but for the applied field of big data quantity Scape, during each synchrodata, the ratio shared by data volume for changing is smaller, and most of data are unchanged, cause synchronization Time it is very long, seriously consume the internal memory of mobile terminal, waste the flow of user.Another method of data synchronization is based on dividing Page obtains data, by setting the data volume per one page, when entering the page or drop-down refreshing every time, obtains newest homepage number According to, page of data bottom is slided, the data of upper lower one page of sliding loading disclosure satisfy that the requirement that client checks to data full dose, with The method for obtaining data based on full dose is compared, and reduces time during each synchrodata, saves flow, is suitably applied in big number According to the scene of amount.
However, existing paging synchrodata method is when data are obtained, easily there is imperfect data, loss or repetition Problem, it is difficult to ensure the integrality and uniformity of paging request data.And, when new data is generated in server, now If sending request of data to server, the data for getting are the former data of above-mentioned new data and part, are caused in mobile terminal The data of presence are obtained again.Particularly data variation frequency is high and complex structure in the case of, problem above becomes apparent. Accordingly, it would be desirable to a kind of new paging synchrodata method optimizes above-mentioned synchronizing process.
The content of the invention
Therefore, the present invention provides a kind of paging synchrodata scheme, to try hard to solve or at least alleviate what is existed above Problem.
According to an aspect of the present invention, there is provided a kind of paged data synchronous method, it is suitable to perform in the terminal, moves Dynamic terminal is communicated to connect with the webserver, and the webserver is communicated to connect with database server, and database server includes Data storage device, data storage device is stored with a plurality of data message, and data syn-chronization timestamp is included per data information, should Method comprises the following steps:First, send homepage data synchronization request to obtain homepage data, homepage data to the webserver Synchronization request includes that data update timestamp;The homepage data that the webserver is returned are received, homepage data are by the webserver Timestamp is updated according to data to be obtained from data storage device;By the data syn-chronization time of the first data information in homepage data Stamp is assigned to Refresh Data timestamp, and the data syn-chronization timestamp of the last item data message is assigned to data and updates timestamp; In response to the slide instruction of user, lower page of data synchronization request is sent to obtain lower page of data to the webserver, Lower page of data synchronization request includes that data update timestamp;Receive the lower page of data that the webserver is returned, next number of pages Obtained from data storage device according to timestamp is updated according to data by the webserver;By the last item data in lower page of data The data syn-chronization timestamp of information is assigned to data and updates timestamp.
Alternatively, in paged data synchronous method of the invention, also including initialization data refresh time respectively It is 0 that stamp and data update timestamp.
Alternatively, in paged data synchronous method of the invention, also refer to including the slide in response to user Order, if current page has slid into page top and continued slide downward, sending homepage data syn-chronization to the webserver please Ask to obtain homepage data, homepage data synchronization request includes that data update timestamp, and it is 0 that data update time stamp setting.
Alternatively, in paged data synchronous method of the invention, also include:Receive the number that the webserver sends According to PUSH message;If Refresh Data timestamp is more than 0, send propelling data synchronization request to obtain push to the webserver Data, propelling data synchronization request includes Refresh Data timestamp;Receive the propelling data that the webserver is returned, propelling data Obtained from data storage device according to Refresh Data timestamp by the webserver;By the first data information in propelling data Data syn-chronization timestamp be assigned to Refresh Data timestamp.
Alternatively, in paged data synchronous method of the invention, also include:If Refresh Data timestamp is not more than 0, then homepage data synchronization request is sent to the webserver to obtain homepage data, homepage data synchronization request includes data more New timestamp, it is 0 that data update time stamp setting.
According to a further aspect of the invention, there is provided a kind of paged data synchronous method, it is suitable to be held in the webserver OK, the webserver is communicated to connect with multiple mobile terminals and database server respectively, and database server is deposited including data Storage equipment, data storage device is stored with a plurality of data message, and data syn-chronization timestamp, the method bag are included per data information Include following steps:The homepage data synchronization request that mobile terminal sends is received, when homepage data synchronization request updates including data Between stab;Update timestamp and reference data amount according to data, obtained from data storage device it is corresponding with reference data amount, the The data syn-chronization timestamp of one data information and the last item data message;Obtain the data syn-chronization time in data storage device Stamp is not less than the data syn-chronization timestamp of the last item data message and no more than the data syn-chronization time of the first data information The data message of stamp as homepage data, and by homepage data is activation to mobile terminal;Mobile terminal is received to be slided in response to user The lower page of data synchronization request moved operational order and send, lower page of data synchronization request includes that data update timestamp;Root Timestamp and reference data amount are updated according to data, first number corresponding with reference data amount is obtained from data storage device It is believed that the data syn-chronization timestamp of breath and the last item data message;Data syn-chronization timestamp is not small in obtaining data storage device In the data syn-chronization timestamp and the no more than number of the data syn-chronization timestamp of the first data information of the last item data message It is believed that breath is used as lower page of data, and lower page of data is sent to mobile terminal.
Alternatively, in paged data synchronous method of the invention, also include:If having new data information memory extremely Data storage device, then send data-pushing message to mobile terminal.
Alternatively, in paged data synchronous method of the invention, also include:Receive the push that mobile terminal sends Data synchronization request, propelling data synchronization request includes Refresh Data timestamp;According to Refresh Data timestamp, from data storage Data message of the data syn-chronization timestamp more than Refresh Data timestamp is obtained in equipment;Sent out data message as propelling data Deliver to mobile terminal.
According to a further aspect of the invention, there is provided a kind of paged data sychronisation, it is suitable to be resident in the terminal, The paged data sychronisation includes the first sending module, the first receiver module, the first assignment module, the second sending module, the Two receiver modules and the second assignment module.Wherein, the first sending module is suitable to be asked to webserver transmission homepage data syn-chronization Ask to obtain homepage data, homepage data synchronization request includes that data update timestamp;First receiver module is suitable to receive network The homepage data that server is returned, homepage data update timestamp and are obtained from data storage device by the webserver according to data Take;When first assignment module is suitable to for the data syn-chronization timestamp of the first data information in homepage data to be assigned to Refresh Data Between stab, the data syn-chronization timestamp of the last item data message is assigned to data and updates timestamp;Second sending module is suitable to ring Should be instructed in the slide of user, lower page of data synchronization request is sent to obtain lower page of data to the webserver, under Page of data synchronization request includes that data update timestamp;Second receiver module is suitable to receive lower one page that the webserver is returned Data, lower page of data updates timestamp and is obtained from data storage device by the webserver according to data;Second assignment module It is suitable to for the data syn-chronization timestamp of the last item data message in lower page of data to be assigned to data renewal timestamp.
According to a further aspect of the invention, there is provided a kind of mobile terminal, including paged data synchronization of the invention Device.
According to the another aspect of present aspect, there is provided a kind of webserver, including the 4th receiver module, the first acquisition mould Block, the 4th sending module, the 5th receiver module, the second acquisition module and the 5th sending module.Wherein, the 4th receiver module is suitable to The homepage data synchronization request that mobile terminal sends is received, homepage data synchronization request includes that data update timestamp;First obtains Modulus block is suitable to update timestamp and reference data amount according to data, obtains corresponding with reference data amount from data storage device , the data syn-chronization timestamp of the first data information and the last item data message, data are same in obtaining data storage device Step timestamp is not less than the data syn-chronization timestamp of the last item data message and the data of no more than the first data information are same The data message of timestamp is walked as homepage data;4th sending module is suitable to homepage data is activation to mobile terminal;5th Receiver module is suitable to receive the lower page of data synchronization request that mobile terminal is instructed and sent in response to user's slide, next Page data synchronization request includes that data update timestamp;Second acquisition module is suitable to update timestamp and reference data according to data Amount, obtains, first data information corresponding with reference data amount and the last item data message from data storage device Data syn-chronization timestamp, data syn-chronization timestamp is same not less than the data of the last item data message in obtaining data storage device Walk timestamp and the no more than data message of the data syn-chronization timestamp of the first data information is used as lower page of data;5th Sending module is suitable to send lower page of data to mobile terminal.
According to a further aspect of the invention, a kind of paged data synchronization system is also provided, including multiple is according to the present invention Mobile terminal and the network according to the invention server and database server.
The synchronous technical scheme of paged data of the invention, it is same that mobile terminal sends paged data to the webserver Step request, upon receiving the request, the data in the request update timestamp and reference data amount to the webserver, Corresponding data being obtained from the data storage device in database server and being sent to mobile terminal, mobile terminal receives network After the data that server is returned, renewal timestamp is updated the data to send request again.In above-mentioned technical proposal, when network clothes Business device response mobile terminal request from data storage device obtain paged data when, first according to data update timestamp and benchmark Data volume, obtains the data syn-chronization time of, first data information corresponding with reference data amount and the last item data message Stamp, then by data syn-chronization timestamp in data storage device not less than the last item data message data syn-chronization timestamp and No more than the data message of the data syn-chronization timestamp of the first data information is all obtained as the paged data, the i.e. paging The bar number of data message is floated upwards with reference data amount as standard in data, it is ensured that data are not lost or repeat, it is ensured that point The integrality and uniformity of page request data.And, when there is new data information memory to data storage device, network service Device can send data-pushing message to mobile terminal, and mobile terminal takes according to the new data message of the message request, now network Only new data message is obtained from data storage device returns to mobile terminal to business device, without inciting somebody to action new according to reference data amount Data message and part primary data information (pdi) be sent to mobile terminal, it is to avoid repetition obtain already present data, further Save the flow of user, and suitable for data volume is big, data variation frequency and the complicated application scenarios of data structure.
Brief description of the drawings
In order to realize above-mentioned and related purpose, some illustrative sides are described herein in conjunction with following description and accompanying drawing Face, these aspects indicate the various modes that can put into practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall under in the range of theme required for protection.By being read in conjunction with the figure following detailed description, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical reference generally refers to identical Part or element.
Fig. 1 shows the schematic diagram of paged data synchronization system 100 according to an embodiment of the invention;
Fig. 2 shows the flow chart of paged data synchronous method 200 according to an embodiment of the invention;
The flow chart of the step of Fig. 3 shows acquisition homepage data according to an embodiment of the invention S220;
The flow chart of the step of Fig. 4 shows page of data under acquisition according to an embodiment of the invention S260;
Fig. 5 shows the structured flowchart of mobile terminal according to an embodiment of the invention 300;
Fig. 6 shows the schematic diagram of paged data sychronisation 600 according to an embodiment of the invention;
Fig. 7 shows the schematic diagram of the paged data sychronisation 700 according to another embodiment of the invention;
Fig. 8 shows the schematic diagram of the webserver according to an embodiment of the invention 500;And
Fig. 9 shows the schematic diagram of the webserver 800 according to another embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 1 shows the schematic diagram of paged data synchronization system 100 according to an embodiment of the invention.It should be pointed out that Paged data synchronization system 100 in Fig. 1 is only exemplary, in specific practice situation, paged data synchronization system 100 In can have mobile terminal, the webserver and the database server of varying number, the present invention is synchronously to paged data The quantity of included mobile terminal, the webserver and database server is not limited in system 100.As shown in figure 1, point Page data synchronization system 100 includes the 2 mobile terminals 300 and 400, webserver 500 and database server 900.Its In, the webserver 500 is communicated to connect with mobile terminal 300 and 400, database server 900 respectively, the He of mobile terminal 300 400 can be smart mobile phone, panel computer etc., but not limited to this.Database server 900 includes data storage device (in figure It is not shown), the data storage device is stored with a plurality of data message, and data syn-chronization timestamp is included per data information.Below The explanation of the synchronous technical scheme of paged data will be carried out by taking mobile terminal 300 as an example.Specifically, mobile terminal 300 is to net Network server 500 sends homepage data synchronization request, and the webserver 500 is according to the request from database server 900 Homepage Data Concurrent is obtained in data storage device and gives mobile terminal 300, now mobile terminal 300 has got homepage number According to.If user carries out slide, the response slide instruction of mobile terminal 300, to the webserver 500 to current page Lower page of data synchronization request is sent, the webserver 500 sets according to the request from the data storage in database server 900 Page of data and sent to mobile terminal 300 under standby middle acquisition, mobile terminal 300 gets lower page of data.
Fig. 2 shows the flow chart of paged data synchronous method 200 according to an embodiment of the invention.As shown in Fig. 2 In step S210, mobile terminal 300 sends homepage data synchronization request to obtain homepage data to the webserver 500, first Page data synchronization request includes that data update timestamp.Certainly, homepage number is sent to the webserver 500 in mobile terminal 300 Before according to synchronization request, it is 0 that first initialization data refresh time stamp and data update timestamp respectively.
Then, into step S220, the webserver 500 please in the homepage data syn-chronization for receiving the transmission of mobile terminal 300 After asking, homepage data are obtained from the data storage device of database server 900.Fig. 3 is shown according to a reality of the invention The flow chart of the step of applying the acquisition homepage data of example S220.As shown in figure 3, in step S221, the basis of the webserver 500 Data update timestamp and reference data amount, and, first data corresponding with reference data amount is obtained from data storage device The data syn-chronization timestamp of information and the last item data message.It is 0, the webserver 500 that now data update timestamp It is that can determine whether page data synchronization request headed by current request to update timestamp according to the data, then made current time plus 5 minutes It is that new data update timestamp, to obtain the data of newest one page in data storage device as homepage data.After renewal It is 1481432071005 that data update timestamp, plus the purpose of 5 minutes is taken with database to solve the webserver 500 Time difference problem between business device 900, it is to avoid lose latest data, so that it is guaranteed that obtaining the integrality of data.Table 1 shows The storage example of data message in data storage device, it is specific as follows shown:
Table 1
As shown in table 1, include per data information Data Identification, data syn-chronization timestamp, the time that places an order, forwarding time and Operating time, data syn-chronization timestamp is the maximum in the time of placing an order, forwarding time and Action Events.It should be noted that Also include data content in data message, for ease of statement, not shown in table 1.As can be seen from Table 1, data message be by Sequentially stored according to data syn-chronization timestamp order from big to small, i.e., above, old data arrangement exists new data arrangement Below, and newest data information data syn-chronization timestamp be 1481432061220, less than data update timestamp, Ensure that the homepage data for getting include latest data information, in the absence of loss or omission.In this embodiment, benchmark Data volume is set to 3, and the data syn-chronization timestamp for obtaining the first data information corresponding with reference data amount is 1481432061220, corresponding data mark 1008, the data syn-chronization timestamp 1481432061008 of the last item data message, Corresponding data mark 1006.
Next, into step S222, data syn-chronization timestamp is not less than the last item number in obtaining data storage device It is believed that the data syn-chronization timestamp and the no more than data message of the data syn-chronization timestamp of the first data information of breath are used as head Page data.The data syn-chronization timestamp of the last item data message and the first data information is respectively 1481432061008 Hes 1481432061220, not less than 1481432061008 and no more than 1481432061220 data syn-chronization timestamp is 1481432061220th, 1481432061010 and 1481432061008, the corresponding number of data syn-chronization timestamp 1481432061220 According to mark 1008, the corresponding data of data syn-chronization timestamp 1481432061010 mark 1007, data syn-chronization timestamp 1481432061008 difference corresponding data marks 1006 and 1005, the final data message for obtaining Data Identification 1008~1005 As homepage data.
After the webserver 500 gets homepage data, start to perform step S230, by homepage data is activation to movement eventually End 300.And mobile terminal 300 receives the homepage data that the webserver 500 is returned, and in step S240, by homepage data In the data syn-chronization timestamp of the first data information be assigned to Refresh Data timestamp, the data of the last item data message are same Step timestamp is assigned to data and updates timestamp.In this embodiment, the value of Refresh Data timestamp is updated to 1481432061220, the value that data update timestamp is updated to 1481432061008.It is obvious that mobile terminal 300 is being obtained To after homepage data, can it be processed to show corresponding page in screen.Because the data for typically getting are Json The data of form, whether first the data are carried out with dissection process correct to judge the request for returning.Specifically, according to Json Returncode fields in the data of form are judged, if returncode is 0, illustrate that the data for returning are correct, Data in parsing result fields, if returncode is not 0, corresponding mistake are carried out according to the value of returncode Treatment.Further, if returncode is -666, illustrate that user right sends change, first obtain new user right List, then judges whether also there is the authority for obtaining synchrodata, if then obtaining data again, if being pointed out without if To user temporarily without the authority of the synchronous data, while the local data deletion before in mobile terminal 300 is no longer shown.If Returncode is -200, then illustrate user's different-place login, then jump back out to login interface.If returncode is -1, table There is mistake in bright this time request, mobile terminal 300 does not carry out Json data parsings, the close friend that straight-forward network server 500 is returned Error message is prompted to user.An example of homepage data is shown below is, it is specific as follows:
{"returncode":0,
"message":" success ",
"result":{"rowcount":0,"pagecount":0,"pageindex":0,"lastupdatetime": 0,
"list":[{"startdatetime":1481432061220,"lastupdatetime":481432061008,
"needbuild":3,"needdeal":12,"unread":0,"isshowcustomersource":1,
"customerlist":[{"cid":95607,"sex":0,"customername":" easy car client ",
"customernamealias":"","phone":"15210372230","location":" Putian ",
"specname":" NCC ", " ordertype ":0,"handletime":1481882802000,
"isforward":0,"isdid":0,"siteid":0,"ishandle":1,"isarchived":0,
"isunread":0,"c ustomersourceid":5,"customersourcename":" Sohu " },
……
{"cid":75901,"sex":0,"customername":" Li Baijie ", " customernamealias ":"",
"phone":"13831230713","location":" Baoding ", " specname ":" Pagerlo strength is smooth
2013 sections of 2.4L manual two drive comfortable ", " ordertype ":1,"handletime":1481620680000,
"isforward":1,"isdid":0,"siteid":30,"ishandle":1,"isarchived":0," isunread":0,
"customersourceid":0,"customersourcename":" family of automobile " }] }] }
}
As can be seen that the value of returncode is 0 from above-mentioned data, illustrate that the data for returning are correct, and then parse The data are localized treatment by the data in result fields, and using UI threads by the content revealing in data to ought In the preceding page.Certainly, if homepage data synchronization request is without returned data, the temporary no data page is shown.Performing localization During treatment, entity conversion first is carried out to the homepage data for getting, the list of entities data after conversion are deposited to movement In tables of data in the local SQLite databases of terminal 300.It is worth noting that, being needed first by data during storage homepage data Table is emptied, then the homepage data that will be obtained are placed wherein.
And in list fields, there is startdatetime and lastupdatetime parameters, its value is respectively 1481432061220 and 1481432061008, the two parameters correspond in homepage data the first data information and last respectively The data syn-chronization timestamp of one data information, above-mentioned assignment updates step, actually by startdatetime Refresh Data timestamp is assigned to respectively with the value of lastupdatetime and data update timestamp.
In step s 250, the slide in response to user is instructed, and mobile terminal 300 sends to the webserver 500 To obtain lower page of data, lower page of data synchronization request includes that data update timestamp to lower page of data synchronization request.Now, Current page has slid into Bottom of Page and has continued to slide up.According to one embodiment of present invention, mobile terminal 300 is being asked Homepage data are just got before seeking lower page of data, data update timestamp, and assignment is updated to 1481432061008.Need Bright, the lower page of data synchronization request in the present invention includes that all paged datas in addition to homepage data synchronization request are same Step request, statement of the lower one page only with respect to current page.
The webserver 500 receive mobile terminal 300 send lower page of data synchronization request after, into step S260, obtains lower page of data from the data storage device of database server 900.Fig. 4 is shown according to of the invention one Under the acquisition of embodiment the step of page of data S260 flow chart.As shown in figure 4, in step S261, the webserver 500 According to data update timestamp and reference data amount, from data storage device obtain it is corresponding with reference data amount, first The data syn-chronization timestamp of data message and the last item data message.It is 1481432061008 that now data update timestamp, Reference data amount is 3, and the data syn-chronization timestamp for obtaining the first data information corresponding with reference data amount is 1481432061005, corresponding data mark 1004, the data syn-chronization timestamp 1481432061002 of the last item data message, Corresponding data mark 1002.
Next, into step S262, data syn-chronization timestamp is not less than the last item number in obtaining data storage device It is believed that the data syn-chronization timestamp and the no more than data message of the data syn-chronization timestamp of the first data information of breath are under Page of data.The data syn-chronization timestamp of the last item data message and the first data information is respectively 1481432061002 Hes 1481432061005, not less than 1481432061005 and no more than 1481432061002 data syn-chronization timestamp is 1481432061005th, 1481432061003 and 1481432061002, the corresponding number of data syn-chronization timestamp 1481432061005 According to mark 1004, the corresponding data of data syn-chronization timestamp 1481432061003 mark 1003, data syn-chronization timestamp 1481432061002 corresponding datas mark 1002, the final data message for obtaining Data Identification 1004~1002 is used as lower one page Data.
After the webserver 500 gets lower page of data, start to perform step S270, lower page of data is sent to shifting Dynamic terminal 300.And mobile terminal 300 receives the lower page of data that the webserver 500 is returned, and in step S280, by under The data syn-chronization timestamp of the last item data message is assigned to data renewal timestamp in page of data.Preferably In, the value that data update timestamp is updated to 1481432061002.Hereafter, 300 pairs of lower page of data of mobile terminal are parsed And localization process, to show corresponding page in screen, the parsing of this process and homepage data and localization process base This is consistent,
Do not repeated herein, in being simply directly placed into tables of data in page of data under storage.Should Illustrate, when page of data synchronization request is without returned data instantly, the prompting letter of more data is displayed without in current page Breath, no more data is pointed out on the data loading bar that can be such as shown when Bottom of Page is continued to slide up.
According to still another embodiment of the invention, method 200 also comprises the following steps:Slide in response to user refers to Order, if the current page in mobile terminal 300 has slid into page top and continued slide downward, to the webserver 500 Homepage data synchronization request is sent to obtain homepage data, homepage data synchronization request includes that data update timestamp, and data are more New time stamp setting is 0.And the webserver 500 is held after the homepage data synchronization request for receiving the transmission of mobile terminal 300 Row step S220 and 230, updates timestamp and obtains homepage number from the data storage device in database server 900 according to data According to, and by homepage data is activation to mobile terminal 300, when the execution of mobile terminal 300 step S240 updates the data refreshing with assignment Between stamp and data update timestamp.
According to another embodiment of present aspect, method 200 also includes, if there is new data information memory to data storage Equipment, database server 900 can send the prompting message that a new data is stored in the webserver 500, then network service Device 500 sends data-pushing message to mobile terminal 300.Table 2 shows the data storage device after being stored in new data message The storage example of middle data message is specific as follows shown:
Table 2
By table 2 it can be found that new data message is believed for the corresponding data of Data Identification 1011 and 1009 compared with table 1 Breath, its data syn-chronization timestamp is respectively 1481432061235 and 1481432061231.Know there is new when the webserver 500 Data information memory to data storage device after, call push interface to mobile terminal 300 send data-pushing message.It is mobile Terminal 300 receives the data-pushing message that the webserver 500 sends, and corresponding sending out notice, and root can be shown in screen According to the value of Refresh Data timestamp, corresponding data synchronization request is sent to the webserver 500.If Refresh Data timestamp is big In 0, then propelling data synchronization request is sent to obtain propelling data to the webserver 500, propelling data synchronization request includes Refresh Data timestamp.After the webserver 500 receives the propelling data synchronization request that mobile terminal sends, according to Refresh Data Timestamp, obtains the data message of data syn-chronization timestamp more than Refresh Data timestamp from data storage device, and by number It is believed that breath is sent to mobile terminal 300 as propelling data.If Refresh Data timestamp is not more than 0, to the webserver 500 Homepage data synchronization request is sent to obtain homepage data, homepage data synchronization request includes that data update timestamp, and data are more New time stamp setting is 0.In this embodiment, Refresh Data timestamp is 1481432061220, meets the condition more than 0, And as can be known from Table 2, the data syn-chronization timestamp more than 1481432061220 has 1481432061235 Hes 1481432061232, corresponding Data Identification is respectively 1010 and 1009, the final data for obtaining Data Identification 1010~1009 Information is as propelling data and is sent to mobile terminal 300.Mobile terminal 300 receives the push number that the webserver 500 is returned According to the data syn-chronization timestamp of the first data information in propelling data is assigned into Refresh Data timestamp.First data Information is the data message that Data Identification is 1010, and its data syn-chronization timestamp is 1481432061235, then the Refresh Data time Stamp is updated to 1481432061235.Afterwards, mobile terminal 300 is parsed and localization process to propelling data, so as in screen Corresponding page is shown in curtain, this process is basically identical with the parsing of homepage data and localization process, is not repeated herein, In being simply directly placed into tables of data when propelling data is deposited.Now, due to meeting on the screen of mobile terminal 300 Show sending out notice to user, user can jump to the corresponding page of propelling data by clicking on the sending out notice.Certainly, such as Fruit propelling data synchronization request does not perform any process step without returned data, mobile terminal 300.
Fig. 5 shows the structured flowchart of mobile terminal according to an embodiment of the invention 300.Mobile terminal 300 can be with Including memory interface 302, one or more data processors, image processor and/or CPU 304, and outward Enclose interface 306.
Memory interface 302, one or more processors 304 and/or peripheral interface 306 both can be discrete components, Can be integrated in one or more integrated circuits.In mobile terminal 300, various elements can be by one or more communication Bus or holding wire are coupled.Sensor, equipment and subsystem may be coupled to peripheral interface 306, various to help to realize Function.
For example, motion sensor 310, light sensor 312 and range sensor 314 may be coupled to peripheral interface 306, To facilitate the functions such as orientation, illumination and range finding.Other sensors 316 can equally be connected with peripheral interface 306, for example positioning system System (such as GPS), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help implement phase The function of pass.
Camera sub-system 320 and optical pickocff 322 can be used for the camera of convenient such as recording photograph and video clipping The realization of function, wherein the camera sub-system and optical pickocff for example can be charge-coupled image sensor (CCD) or complementary gold Category oxide semiconductor (centimetre OS) optical pickocff.Reality can be helped by one or more radio communication subsystems 324 Existing communication function, wherein radio communication subsystem can include radio-frequency transmitter and emitter and/or (such as infrared) reception of light Machine and emitter.The particular design and implementation method of radio communication subsystem 324 can depend on what mobile terminal 300 was supported One or more communication networks.For example, mobile terminal 300 can include being designed to support LTE, 3G, GSM network, GPRS nets Network, EDGE network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 324 of network.
Audio subsystem 326 can be coupled with loudspeaker 328 and microphone 330, to help implement to enable voice Function, such as speech recognition, speech reproduction, digital record and telephony feature.I/O subsystems 340 can include touch-screen control Device processed 342 and/or one or more other input controllers 344.Touch screen controller 342 may be coupled to touch-screen 346.Lift For example, the touch-screen 346 and touch screen controller 342 can be detected using any one of various touch-sensing technologies The contact and movement or pause for carrying out therewith, wherein detection technology include but is not limited to capacitive character, resistive, infrared and table Face technology of acoustic wave.One or more other input controllers 344 may be coupled to other input/control devicess 348, such as one Or the pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or instruction pen etc.It is described One or more button (not shown)s can include the up/down for controlling loudspeaker 328 and/or the volume of microphone 330 Button.
Memory interface 302 can be coupled with memory 350.The memory 350 can be deposited including high random access Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/ Or flash memories (such as NAND, NOR).Memory 350 can with storage program area 372, such as Android, iOS or The operating system of Windows Phone etc.The operating system 372 can be included for processing basic system services and execution Depend on the instruction of the task of hardware.Memory 350 can also be stored and apply 374.When mobile device runs, can be from memory Operating system 372 is loaded in 350, and is performed by processor 304.Using 374 operationally, can also add from memory 350 Carry, and performed by processor 304.Operated on operating system using 374, provided using operating system and bottom hardware Interface realizes the desired function of various users, such as instant messaging, web page browsing, pictures management.Can be independently of using 374 It is that operating system is provided, or that operating system is carried.In addition, when being installed in mobile terminal 300 using 374, Drive module can be added to operating system.In above-mentioned various applications 374, a kind of application therein is according to of the invention point Page data sychronisation 600.
Fig. 6 shows the schematic diagram of paged data sychronisation 600 according to an embodiment of the invention.As shown in fig. 6, Paged data sychronisation 600 is resided in mobile terminal 300, and mobile terminal 300 is communicated to connect with the webserver 500, point Page data sychronisation 600 includes that the first sending module 610, the first receiver module 620, the first assignment module 630, second send Module 640, the second receiver module 650 and the second assignment module 660.
First sending module 610 is suitable to send homepage data synchronization request to obtain homepage data to the webserver 500, Homepage data synchronization request includes that data update timestamp.First sending module 610 is further adapted for the slide in response to user Instruction, when current page has slid into page top and continued slide downward, sends homepage data same to the webserver 500 To obtain homepage data, homepage data synchronization request includes that data update timestamp, and data update time stamp setting and are for step request 0。
First receiver module 620 is suitable to receive the homepage data that the webserver 500 is returned, and homepage data are by network service Device 500 updates timestamp and is obtained from data storage device according to data.
First assignment module 630 is connected with the first receiver module 620, is suitable to get from the first receiver module 620 The data syn-chronization timestamp of the first data information is assigned to Refresh Data timestamp, the last item data message in homepage data Data syn-chronization timestamp be assigned to data update timestamp.
Second sending module 640 is adapted for the slide instruction of user, and lower one page is sent to the webserver 500 To obtain lower page of data, lower page of data synchronization request includes that data update timestamp to data synchronization request.
Second receiver module 650 is suitable to receive the lower page of data that the webserver 500 is returned, and lower page of data is by network Server 500 updates timestamp and is obtained from data storage device according to data.
Second assignment module 660 is connected with the second receiver module 650, is suitable to get from the second receiver module 650 The data syn-chronization timestamp of the last item data message is assigned to data renewal timestamp in lower page of data.
According to the implementation method, paged data sychronisation 600 also includes initialization module (not shown), is suitable to point It is 0 that other initialization data refresh time stamp and data update timestamp.
Fig. 7 shows the schematic diagram of the paged data sychronisation 700 according to another embodiment of the invention.Such as Fig. 7 institutes Show, paged data sychronisation 700 is resided in mobile terminal 300, mobile terminal 300 is communicated to connect with the webserver 500. First sending module 711 of paged data sychronisation 700, the first receiver module 712, the first assignment module 713, second send Module 721, the second receiver module 722 and the second assignment module 723, respectively with first of paged data sychronisation 600 in Fig. 6 Sending module 610, the first receiver module 620, the first assignment module 630, the second sending module 640, the and of the second receiver module 650 Second assignment module 660 is corresponded, and is consistent, and has increased message reception module 731, the 3rd sending module the 732, the 3rd newly The assignment module 734 of receiver module 733 and the 3rd.
Message reception module 731 is suitable to receive the data-pushing message that the webserver 500 sends.
3rd sending module 732 is connected with message reception module 731, is suitable to when Refresh Data timestamp is more than 0, to net Network server 500 sends propelling data synchronization request to obtain propelling data, when propelling data synchronization request includes Refresh Data Between stab.3rd sending module 732 is further adapted for, when Refresh Data timestamp is not more than 0, homepage number being sent to the webserver 500 According to synchronization request to obtain homepage data, homepage data synchronization request includes that data update timestamp, and data update timestamp and set It is set to 0.
3rd receiver module 733 is suitable to receive the propelling data that the webserver 500 is returned, and propelling data is by network service Device 500 is obtained according to Refresh Data timestamp from data storage device.
3rd assignment module 734 is suitable to for the data syn-chronization timestamp of the first data information in propelling data to be assigned to number Stabbed according to refresh time.
Fig. 8 shows the schematic diagram of the webserver according to an embodiment of the invention 500.As shown in figure 8, network takes Business device 500 is communicated to connect with mobile terminal 300 and database server 900 respectively, and database server 900 includes data storage Equipment (not shown), data storage device is stored with a plurality of data message, and the data syn-chronization time is included per data information Stamp.The webserver 500 includes that the 4th receiver module 510, the first acquisition module 520, the 4th sending module the 530, the 5th are received Module 540, the second acquisition module 550 and the 5th sending module 560.
4th receiver module 510 is suitable to receive the homepage data synchronization request that mobile terminal 300 sends, homepage data syn-chronization Request includes that data update timestamp.
First acquisition module 520 is connected with the 4th receiver module 510, is suitable to basis and is got from the 4th receiver module 510 Data update timestamp and reference data amount, from data storage device obtain, first number corresponding with reference data amount It is believed that the data syn-chronization timestamp of breath and the last item data message, data syn-chronization timestamp is not small in obtaining data storage device In the data syn-chronization timestamp and the no more than number of the data syn-chronization timestamp of the first data information of the last item data message It is believed that breath is used as homepage data.
4th sending module 530 is connected with the first acquisition module 520, is suitable to get from the first acquisition module 520 Homepage data is activation is to mobile terminal 300.
5th receiver module 540 is suitable to receive the next of the transmission in response to the instruction of user's slide of mobile terminal 300 Page data synchronization request, lower page of data synchronization request includes that data update timestamp.
Second acquisition module 550 is connected with the 5th receiver module 540, is suitable to basis and is got from the 5th receiver module 540 Data update timestamp and reference data amount, and, first data corresponding with reference data amount is obtained from data storage device The data syn-chronization timestamp of information and the last item data message, data syn-chronization timestamp is not less than in obtaining data storage device The data syn-chronization timestamp of the last item data message and the no more than data of the data syn-chronization timestamp of the first data information Information is used as lower page of data 0
5th sending module 560 is connected with the second acquisition module 550, is suitable to get from the second acquisition module 550 Lower page of data is sent to mobile terminal 300.
Fig. 9 shows the schematic diagram of the webserver 800 according to another embodiment of the invention.As shown in figure 9, network Server 800 is communicated to connect with mobile terminal 300 and database server 900 respectively, and database server 900 is deposited including data Storage equipment (not shown), data storage device is stored with a plurality of data message, when including data syn-chronization per data information Between stab.4th receiver module 811 of the webserver 800, the first acquisition module 812, the 4th sending module the 813, the 5th are received Module 821, the second acquisition module 822 and the 5th sending module 823, respectively with the 4th reception mould of the webserver in Fig. 8 500 Block 510, the first acquisition module 520, the 4th sending module 530, the 5th receiver module 540, the second acquisition module 550 and the 5th hair Send module 560 to correspond, be consistent, and increased message transmission module 831, the 6th receiver module the 832, the 3rd newly and obtain mould The sending module 834 of block 833 and the 6th.
Message transmission module 831 is suitable to when there is new data information memory to data storage device, to mobile terminal 300 Send data-pushing message.
6th receiver module 832 is suitable to receive the propelling data synchronization request that mobile terminal 300 sends, propelling data synchronization Request includes Refresh Data timestamp.
3rd acquisition module 833 is connected with the 6th receiver module 832, is suitable to basis and is got from the 6th receiver module 832 Refresh Data timestamp, data syn-chronization timestamp is obtained from data storage device and is believed more than the data of Refresh Data timestamp Breath.
6th sending module 834 is connected with the 3rd acquisition module 833, is suitable to be got from the 3rd acquisition module 833 Data message sent to mobile terminal 300 as propelling data.
It is public in detail in the description based on Fig. 2~3 on paged data synchronous specific steps and embodiment Open, here is omitted.
Easily there is the problem that data are imperfect, lose or repeat when data are obtained in existing paging synchrodata method, The integrality and uniformity of paging request data are difficult to ensure that, particularly data variation frequency is high and baroque situation Under, problem above becomes apparent.The synchronous technical scheme of paged data according to embodiments of the present invention, mobile terminal takes to network Business device sends paged data synchronization request, the webserver upon receiving the request, when data in the request update Between stamp and reference data amount, from the data storage device in database server obtain corresponding data and be sent to it is mobile eventually End, after mobile terminal receives the data of webserver return, updates the data renewal timestamp to send request again.On In stating technical scheme, when the request of network server response mobile terminal obtains paged data from data storage device, first root Timestamp and reference data amount are updated according to data, first data information corresponding with reference data amount and the last item is obtained The data syn-chronization timestamp of data message, then data syn-chronization timestamp in data storage device is believed not less than the last item data The data message of the data syn-chronization timestamp of breath and no more than the data syn-chronization timestamp of the first data information is all obtained to be made It is the paged data, i.e., the bar number of data message is floated upwards with reference data amount as standard in the paged data, it is ensured that data It is not lost or repeats, it is ensured that the integrality and uniformity of paging request data.And, when there is new data information memory to number During according to storage device, the webserver can send data-pushing message to mobile terminal, and mobile terminal is new according to the message request Data message, now the webserver only new data message obtained from data storage device return to mobile terminal, and New data message and part primary data information (pdi) will not be sent to by mobile terminal according to reference data amount, it is to avoid repetition is obtained Take already present data, further save the flow of user, and suitable for data volume is big, data variation frequency and data structure Complicated application scenarios.
B7. the method as described in B6, also includes:
If there is new data information memory to the data storage device, send data-pushing to the mobile terminal and disappear Breath.
B8. the method as described in B6 or 7, also includes:
The propelling data synchronization request that mobile terminal sends is received, when the propelling data synchronization request includes Refresh Data Between stab;
According to the Refresh Data timestamp, data syn-chronization timestamp is obtained from the data storage device more than described The data message of Refresh Data timestamp;
Sent the data message as propelling data to the mobile terminal.
C10. the device as described in C9, also including initialization module, is suitable to:
It is 0 that initialization data refresh time stamp and data update timestamp respectively.
C11. the device as described in C9 or 10, first sending module is further adapted for:
In response to the slide instruction of user, when current page has slid into page top and has continued slide downward, Homepage data synchronization request is sent to the webserver to obtain homepage data, the homepage data synchronization request includes data more New timestamp, it is 0 that the data update time stamp setting.
C12. the device as any one of C9-11, also includes:
Message reception module, is suitable to receive the data-pushing message that the webserver sends;
3rd sending module, is suitable to, when the Refresh Data timestamp is more than 0, propelling data be sent to the webserver To obtain propelling data, the propelling data synchronization request includes the Refresh Data timestamp to synchronization request;
3rd receiver module, is suitable to receive the propelling data that the webserver is returned, and the propelling data is by network service Device is obtained according to the Refresh Data timestamp from the data storage device;
3rd assignment module, is suitable to be assigned to the data syn-chronization timestamp of the first data information in the propelling data The Refresh Data timestamp.
C13. the device as described in C12, the 3rd sending module is further adapted for:
When the Refresh Data timestamp is not more than 0, send homepage data synchronization request to obtain to the webserver Homepage data, the homepage data synchronization request includes that data update timestamp, and it is 0 that the data update time stamp setting.
D16. the webserver as described in D15, also including message transmission module, is suitable to:
When there is new data information memory to the data storage device, send data-pushing to the mobile terminal and disappear Breath.
D17. the webserver as described in D15 or 16, also includes:
6th receiver module, is suitable to receive the propelling data synchronization request that mobile terminal sends, the propelling data synchronization Request includes Refresh Data timestamp;
3rd acquisition module, is suitable to, according to the Refresh Data timestamp, data be obtained from the data storage device Data message of the synchronized timestamp more than the Refresh Data timestamp;
6th sending module, is suitable to be sent the data message as propelling data to the mobile terminal.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be put into practice in the case of without these details.In some instances, known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield are than the feature more features that is expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, abide by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself As separate embodiments of the invention.
Those skilled in the art should be understood the module or unit or group of the equipment in example disclosed herein Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In one or more different equipment.Module in aforementioned exemplary can be combined as a module or be segmented into multiple in addition Submodule.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed One of meaning mode can be used in any combination.
Additionally, some in the embodiment be described as herein can be by the processor of computer system or by performing The combination of method or method element that other devices of the function are implemented.Therefore, with for implementing methods described or method The processor of the necessary instruction of element forms the device for implementing the method or method element.Additionally, device embodiment Element described in this is the example of following device:The device is used to implement as performed by the element for the purpose for implementing the invention Function.
As used in this, unless specifically stated so, come using ordinal number " first ", " second ", " the 3rd " etc. Description plain objects are merely representative of and are related to the different instances of similar object, and are not intended to imply that the object being so described must Must have the time it is upper, spatially, sequence aspect or given order in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention for thus describing, it can be envisaged that other embodiments.Additionally, it should be noted that The language that is used in this specification primarily to readable and teaching purpose and select, rather than in order to explain or limit Determine subject of the present invention and select.Therefore, in the case of without departing from the scope of the appended claims and spirit, for this Many modifications and changes will be apparent from for the those of ordinary skill of technical field.For the scope of the present invention, to this The done disclosure of invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (10)

1. a kind of paged data synchronous method, is suitable to perform in the terminal, and the mobile terminal communicates with the webserver Connection, the webserver is communicated to connect with database server, and the database server includes data storage device, institute State data storage device to be stored with a plurality of data message, data syn-chronization timestamp is included per data information, methods described includes:
Homepage data synchronization request is sent to the webserver to obtain homepage data, the homepage data synchronization request includes number According to renewal timestamp;
The homepage data that the webserver is returned are received, the homepage data update the time by the webserver according to the data Stamp is obtained from the data storage device;
The data syn-chronization timestamp of the first data information in the homepage data is assigned to Refresh Data timestamp, last The data syn-chronization timestamp of data information is assigned to the data and updates timestamp;
In response to the slide instruction of user, lower page of data synchronization request is sent to obtain next number of pages to the webserver According to the lower page of data synchronization request includes that the data update timestamp;
The lower page of data that the webserver is returned is received, the lower page of data is updated by the webserver according to the data Timestamp is obtained from the data storage device;
The data syn-chronization timestamp of the last item data message in the lower page of data is assigned to the data and updates the time Stamp.
2. the method for claim 1, also includes:
It is 0 that initialization data refresh time stamp and data update timestamp respectively.
3. method as claimed in claim 1 or 2, also includes:
In response to the slide instruction of user, if current page has slid into page top and continued slide downward, to net Network server sends homepage data synchronization request to obtain homepage data, when the homepage data synchronization request updates including data Between stab, it is 0 that the data update time stamp setting.
4. the method as any one of claim 1-3, also includes:
Receive the data-pushing message that the webserver sends;
If the Refresh Data timestamp is more than 0, send propelling data synchronization request to obtain push number to the webserver According to the propelling data synchronization request includes the Refresh Data timestamp;
The propelling data that the webserver is returned is received, the propelling data is by the webserver according to the Refresh Data time Stamp is obtained from the data storage device;
The data syn-chronization timestamp of the first data information in the propelling data is assigned to the Refresh Data timestamp.
5. method as claimed in claim 4, also includes:
If the Refresh Data timestamp is not more than 0, send homepage data synchronization request to obtain homepage to the webserver Data, the homepage data synchronization request includes that data update timestamp, and it is 0 that the data update time stamp setting.
6. a kind of paged data synchronous method, is suitable to be performed in the webserver, and the webserver is moved with multiple respectively Dynamic terminal and database server communication connection, the database server include data storage device, and the data storage sets The standby a plurality of data message that is stored with, data syn-chronization timestamp is included per data information, and methods described includes:
The homepage data synchronization request that mobile terminal sends is received, the homepage data synchronization request includes that data update the time Stamp;
Timestamp and reference data amount are updated according to the data, is obtained from the data storage device and the reference data Measure the data syn-chronization timestamp of corresponding, the first data information and the last item data message;
Obtain data syn-chronization of the data syn-chronization timestamp not less than the last item data message in the data storage device The data message of the data syn-chronization timestamp of timestamp and no more than described first data information is incited somebody to action as homepage data The homepage data is activation is to the mobile terminal;
Receive the lower page of data synchronization request that mobile terminal is instructed and sent in response to user's slide, next number of pages Include that data update timestamp according to synchronization request;
Timestamp and reference data amount are updated according to the data, is obtained from the data storage device and the reference data Measure the data syn-chronization timestamp of corresponding, the first data information and the last item data message;
Obtain data syn-chronization of the data syn-chronization timestamp not less than the last item data message in the data storage device The data message of the data syn-chronization timestamp of timestamp and no more than described first data information as lower page of data, and The lower page of data is sent to the mobile terminal.
7. a kind of paged data sychronisation, is suitable to be resident in the terminal, and the mobile terminal communicates with the webserver Connection, the webserver is communicated to connect with database server, and the database server includes data storage device, institute State data storage device to be stored with a plurality of data message, data syn-chronization timestamp is included per data information, described device includes:
First sending module, is suitable to send homepage data synchronization request to obtain homepage data, the homepage to the webserver Data synchronization request includes that data update timestamp;
First receiver module, is suitable to receive the homepage data that the webserver is returned, and the homepage data are by webserver root Timestamp is updated according to the data to be obtained from the data storage device;
First assignment module, is suitable to for the data syn-chronization timestamp of the first data information in the homepage data to be assigned to data Refresh time is stabbed, and the data syn-chronization timestamp of the last item data message is assigned to the data and updates timestamp;
Second sending module, is adapted for the slide instruction of user, and lower page of data synchronization is sent to the webserver To obtain lower page of data, the lower page of data synchronization request includes that the data update timestamp for request;
Second receiver module, is suitable to receive the lower page of data that the webserver is returned, and the lower page of data is by network service Device updates timestamp and is obtained from the data storage device according to the data;
Second assignment module, is suitable to be assigned to the data syn-chronization timestamp of the last item data message in the lower page of data The data update timestamp.
8. a kind of mobile terminal, including paged data sychronisation as claimed in claim 7.
9. a kind of webserver, communicates to connect, the database service with multiple mobile terminals and database server respectively Device includes data storage device, and the data storage device is stored with a plurality of data message, includes that data are same per data information Step timestamp, the webserver includes:
4th receiver module, is suitable to receive the homepage data synchronization request that mobile terminal sends, the homepage data synchronization request Timestamp is updated including data;
First acquisition module, is suitable to update timestamp and reference data amount according to the data, from the data storage device The data syn-chronization timestamp of, first data information corresponding with the reference data amount and the last item data message is obtained, Obtain data syn-chronization time of the data syn-chronization timestamp not less than the last item data message in the data storage device The data message of stamp and the data syn-chronization timestamp of no more than described first data information is used as homepage data;
4th sending module, is suitable to the homepage data is activation to the mobile terminal;
5th receiver module, is suitable to receive the lower page of data synchronization that mobile terminal is instructed and sent in response to user's slide Request, the lower page of data synchronization request includes that data update timestamp;
Second acquisition module, is suitable to update timestamp and reference data amount according to the data, from the data storage device The data syn-chronization timestamp of, first data information corresponding with the reference data amount and the last item data message is obtained, Obtain data syn-chronization time of the data syn-chronization timestamp not less than the last item data message in the data storage device The data message of stamp and the data syn-chronization timestamp of no more than described first data information is used as lower page of data;
5th sending module, is suitable to send the lower page of data to the mobile terminal.
10. a kind of paged data synchronization system, including:
Multiple mobile terminals as claimed in claim 8;With
The webserver as claimed in claim 9 and database server.
CN201710058446.3A 2017-01-23 2017-01-23 A kind of paged data synchronous method, apparatus and system Active CN106844689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710058446.3A CN106844689B (en) 2017-01-23 2017-01-23 A kind of paged data synchronous method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710058446.3A CN106844689B (en) 2017-01-23 2017-01-23 A kind of paged data synchronous method, apparatus and system

Publications (2)

Publication Number Publication Date
CN106844689A true CN106844689A (en) 2017-06-13
CN106844689B CN106844689B (en) 2019-06-04

Family

ID=59122606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710058446.3A Active CN106844689B (en) 2017-01-23 2017-01-23 A kind of paged data synchronous method, apparatus and system

Country Status (1)

Country Link
CN (1) CN106844689B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370803A (en) * 2017-07-11 2017-11-21 福建省天奕网络科技有限公司 The method and terminal of a kind of data syn-chronization
CN107741994A (en) * 2017-11-09 2018-02-27 校脸科技(北京)有限公司 A kind of data-updating method and device
CN108521798A (en) * 2018-04-25 2018-09-11 深圳市元征软件开发有限公司 Car data stream display methods, system and automotive diagnostic installation
CN111078171A (en) * 2019-11-30 2020-04-28 北京城市网邻信息技术有限公司 Method, terminal device, device and readable storage medium for synchronous display
CN111240650A (en) * 2020-01-22 2020-06-05 上海钧正网络科技有限公司 Data paging method and device and mobile terminal
CN112765275A (en) * 2021-01-26 2021-05-07 成都佳发安泰教育科技股份有限公司 Data synchronous exchange method, equipment and medium based on single time coordinate system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904887A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for data synchronization of Web client and server
US8843491B1 (en) * 2012-01-24 2014-09-23 Google Inc. Ranking and ordering items in stream
WO2014176744A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited An information collection, storage, and sharing platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8843491B1 (en) * 2012-01-24 2014-09-23 Google Inc. Ranking and ordering items in stream
CN102904887A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for data synchronization of Web client and server
WO2014176744A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited An information collection, storage, and sharing platform

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370803A (en) * 2017-07-11 2017-11-21 福建省天奕网络科技有限公司 The method and terminal of a kind of data syn-chronization
CN107370803B (en) * 2017-07-11 2020-09-08 福建省天奕网络科技有限公司 Data synchronization method and terminal
CN107741994A (en) * 2017-11-09 2018-02-27 校脸科技(北京)有限公司 A kind of data-updating method and device
CN107741994B (en) * 2017-11-09 2021-09-07 校脸科技(北京)有限公司 Data updating method and device
CN108521798A (en) * 2018-04-25 2018-09-11 深圳市元征软件开发有限公司 Car data stream display methods, system and automotive diagnostic installation
CN108521798B (en) * 2018-04-25 2021-08-10 深圳市元征软件开发有限公司 Automobile data stream display method and system and automobile diagnosis equipment
US11164402B2 (en) 2018-04-25 2021-11-02 Shenzhen Launch Software Co., Ltd. Vehicle data stream displaying method and system, and vehicle diagnostic device
CN111078171A (en) * 2019-11-30 2020-04-28 北京城市网邻信息技术有限公司 Method, terminal device, device and readable storage medium for synchronous display
CN111078171B (en) * 2019-11-30 2021-05-25 北京城市网邻信息技术有限公司 Method, terminal device, device and readable storage medium for synchronous display
CN111240650A (en) * 2020-01-22 2020-06-05 上海钧正网络科技有限公司 Data paging method and device and mobile terminal
CN111240650B (en) * 2020-01-22 2023-06-30 上海钧正网络科技有限公司 Data paging method and device and mobile terminal
CN112765275A (en) * 2021-01-26 2021-05-07 成都佳发安泰教育科技股份有限公司 Data synchronous exchange method, equipment and medium based on single time coordinate system

Also Published As

Publication number Publication date
CN106844689B (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN106844689A (en) A kind of paged data synchronous method, apparatus and system
EP3335411B1 (en) Electronic device and method of managing application programs thereof
CN105005439B (en) Icon management method, device and mobile terminal
US20150128094A1 (en) Gesture-Based Controls Via Bone Conduction
US9816833B2 (en) Method and apparatus for providing location based service
WO2015062462A1 (en) Matching and broadcasting people-to-search
WO2015014144A1 (en) Method and apparatus for installing application, and terminal device
AU2014348821A1 (en) Location-based software updates
US10333868B2 (en) Techniques to automate bot creation for web pages
CN108235828A (en) The method, apparatus and terminal device of searching net display of a kind of terminal device
CN105426069B (en) For generating the method and electronic equipment of preview data
CN106131133B (en) Browsing history record information viewing method, device and system
CN106664660A (en) Method and apparatus for sending and receiving system message, user equipment, and base station
CN109510881A (en) Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files
CN105282733A (en) Electronic device and network connection method of electronic device
US9059747B2 (en) Method for rapid information synchronization using near field communication
CN106293738A (en) The update method of a kind of facial expression image and device
CN103412885A (en) Contact person photo setting method and device
CN106790743A (en) Information transferring method, device and mobile terminal
US10284614B2 (en) Method for downloading contents of electronic device and electronic device thereof
CN104063424B (en) Web page picture shows method and demonstration device
CN106161656B (en) Interface jumping method and device
CN108205455B (en) Application function implementation method and device and terminal
CN105095161B (en) Method and device for displaying rich text information
CN109710345A (en) Page synchronization method, apparatus, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant