CN109359119A - The data-updating method of wholesale terminal, wholesale terminal, system and storage medium - Google Patents
The data-updating method of wholesale terminal, wholesale terminal, system and storage medium Download PDFInfo
- Publication number
- CN109359119A CN109359119A CN201811188947.4A CN201811188947A CN109359119A CN 109359119 A CN109359119 A CN 109359119A CN 201811188947 A CN201811188947 A CN 201811188947A CN 109359119 A CN109359119 A CN 109359119A
- Authority
- CN
- China
- Prior art keywords
- data
- wholesale terminal
- wholesale
- terminal
- transaction data
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses data-updating method, system and the storage mediums of a kind of wholesale terminal, wholesale terminal has the local toy data base for store transaction data, method includes the following steps: S1, when needing to update the transaction data of local toy data base, obtain the hardware utilization rate of wholesale terminal and judge whether hardware utilization rate has been more than preset threshold;S2, if it is not, then according to the time sequencing of every transaction data in new storage location one by one storage needed for update transaction data;S3, if so, by the transaction data of update cover time earliest transaction data in chronological order.This method can when carrying out data update according to the hardware service condition of wholesale terminal to determine whether need to cover legacy data, to guarantee the operational efficiency of wholesale terminal, avoid causing wholesale terminal the phenomenon that card machine occur since amount of storage is excessive.
Description
Technical field
The present invention relates to data update method field more particularly to a kind of data-updating methods of wholesale terminal, wholesale end
End, system and storage medium.
Background technique
Received data can be stored in by existing electronic equipment, such as mobile phone, tablet computer in more new data
In memory, expires until the capacity of memory and just informed that user capacity has been expired, can not have been stored.If memory storage
Overabundance of data will affect the speed of service of electronic equipment, leads to electronic equipment operation slowly, the phenomenon that card machine often occurs.It is right
For some whole sellers, they usually require to carry out store transaction data using electronic equipment to check verifying trade order.
Accumulate over a long period, the data volume of transaction data be it is very large, in this case, the data update side of existing electronic equipment
Formula can be very easy to cause electronic equipment operation slow.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide a kind of updates of the data of wholesale terminal
Method, can when carrying out data update according to the hardware service condition of wholesale terminal to determine whether need to cover legacy data,
To guarantee the operational efficiency of wholesale terminal, avoid causing wholesale terminal the phenomenon that card machine occur since amount of storage is excessive.
The second object of the present invention is to provide a kind of wholesale terminal, can be according to wholesale terminal when carrying out data update
Hardware service condition to determine whether need to cover legacy data, to guarantee the operational efficiency of wholesale terminal, avoid due to storage
It measures excessive and wholesale terminal is caused the phenomenon that card machine occur.
The third object of the present invention is to provide a kind of wholesale terminal data more new system, the energy when carrying out data update
According to the hardware service condition of wholesale terminal to determine whether needing to cover legacy data, to guarantee the operational efficiency of wholesale terminal,
It avoids causing wholesale terminal the phenomenon that card machine occur since amount of storage is excessive.
The fourth object of the present invention is to provide a kind of computer readable storage medium, the calculating which is stored
Machine program is able to achieve when carrying out data update according to the hardware service condition of wholesale terminal to determine whether needing to cover when running
Lid legacy data avoids causing wholesale terminal card machine occur since amount of storage is excessive to guarantee the operational efficiency of wholesale terminal
Phenomenon.
An object of the present invention adopts the following technical scheme that realization:
A kind of data-updating method of wholesale terminal, the wholesale terminal have the local for store transaction data small-sized
Database, method includes the following steps:
When needing to update the transaction data of local toy data base, obtains the hardware utilization rate of the wholesale terminal and sentence
Whether the hardware utilization rate of breaking has been more than preset threshold;
If it is not, the then required friendship updated of storage one by one in new storage location according to the time sequencing of every transaction data
Easy data;
If so, by the transaction data of update cover time earliest transaction data in chronological order.
Further, the hardware utilization rate is storage memory capacity accounting rate, the judgement wholesale terminal
Hardware utilization rate whether be more than preset threshold specifically: obtain the storage memory of wholesale terminal and with capacity accounting rate and sentenced
Disconnected storage memory has used whether capacity accounting rate is greater than preset threshold.
Further, the hardware utilization rate is that memory uses accounting rate, and the hardware of the judgement wholesale terminal makes
It whether has been more than preset threshold with rate specifically: obtain the memory of wholesale terminal using accounting rate and judge that memory uses accounting rate
Whether preset threshold is greater than.
Further, the hardware utilization rate is that CPU uses accounting rate, and the hardware of the judgement wholesale terminal uses
Whether rate has been more than preset threshold specifically: obtains the CPU of wholesale terminal using accounting rate and judges whether CPU uses accounting rate
Greater than preset threshold.
Further, the preset threshold is 50%.
Further, the hardware utilization rate of wholesale terminal is obtained by calling corresponding hardware interface function.
Further, needing the situation for the transaction data for updating local toy data base specifically has following two:
When the wholesale terminal, which generates transaction data, to be needed to save, more by the wholesale terminal transaction data generated
Newly into the transaction data of local toy data base;
When the wholesale terminal receives the new transaction data of background server transmission, the background server is sent out
The new transaction data sent is updated into the transaction data of local toy data base.
The second object of the present invention adopts the following technical scheme that realization:
A kind of wholesale terminal, including processor and memory, the memory is stored with executable computer program, described
Processor can be read the computer program and run the data-updating method to realize a kind of above-mentioned wholesale terminal.
The third object of the present invention adopts the following technical scheme that realization:
A kind of data update system of wholesale terminal, which is characterized in that including wholesale terminal and background server, described batch
Hair terminal can be communicated with the background server, and the wholesale terminal includes processor and memory, and the memory is deposited
Executable computer program is contained, the processor can be read the computer program and run to realize that above-mentioned one kind is wholesale
The data-updating method of terminal.
The fourth object of the present invention adopts the following technical scheme that realization:
A kind of computer readable storage medium, the computer-readable recording medium storage have executable computer program,
The computer program can realize the data-updating method of above-mentioned wholesale terminal when running.
Compared with prior art, the beneficial effects of the present invention are:
The data-updating method of the wholesale terminal can make wholesale terminal in the local toy data base for updating itself
When data, the hardware service condition of wholesale terminal is detected to judge whether to need to cover legacy data.When the hardware of wholesale terminal
After utilization rate has been more than preset threshold, the data of update carry out data cover since the data established earliest, wholesale to guarantee
The operational efficiency of terminal avoids causing wholesale terminal the phenomenon that card machine occur since amount of storage is excessive.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the data-updating method of wholesale terminal provided by the invention.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Referring to Fig. 1, a kind of data-updating method of wholesale terminal, wholesale terminal uses PDA, has and is used for store transaction
The local toy data base of data, method includes the following steps:
S1, when needing to update the transaction data of local toy data base, obtain the hardware utilization rate of wholesale terminal and sentence
Whether disconnected hardware utilization rate has been more than preset threshold;
S2, if it is not, then according to the time sequencing of every transaction data in new storage location one by one storage needed for update
Transaction data;
S3, if so, by the transaction data of update cover time earliest transaction data in chronological order.
The data-updating method of the wholesale terminal can make wholesale terminal in the local toy data base for updating itself
When data, the hardware service condition of wholesale terminal is detected to judge whether to need to cover legacy data.When the hardware of wholesale terminal
When utilization rate is less than preset threshold, the transaction data of update stores in storage position new directly in local toy data base;
And after the hardware utilization rate of wholesale terminal has been more than preset threshold, the data of update are counted since the data established earliest
According to covering, new capacity is no longer occupied, to guarantee that the hardware of wholesale terminal has enough use spaces, to guarantee wholesale end
The operational efficiency at end avoids causing wholesale terminal the phenomenon that card machine occur since amount of storage is excessive.In general, some times
Data more remote do not need to use again, after the hardware utilization rate of wholesale terminal has been more than preset threshold, first
The preceding data saved earliest have been that the time is longer, therefore, are started after hardware utilization rate has been more than preset threshold
It is covered since time earliest data, some useless data covers can be fallen, improve the utilization rate of memory,
It is excessive and drag the speed of service of slow wholesale terminal to avoid amount of storage.
As a preferred embodiment, hardware utilization rate is storage memory capacity accounting rate, wholesale end is judged
Whether the hardware utilization rate at end has been more than preset threshold specifically: the storage memory for obtaining wholesale terminal has used capacity accounting rate simultaneously
Judge that storing memory has used whether capacity accounting rate is greater than preset threshold.When the Installed System Memory deficiency of wholesale terminal, storage can be used
It deposits memory headroom and works as virtual memory, if the insufficient space of storage memory, will lead to Insufficient virtual memory, so as to cause
Wholesale terminal operating slows, and therefore, need to guarantee that storing memory (ROM) has enough remaining spaces to guarantee wholesale terminal
The speed of service.
As a preferred embodiment, whether the hardware utilization rate for judging wholesale terminal has been more than that preset threshold is specific
Are as follows: the memory of wholesale terminal is obtained using accounting rate and judges whether memory is greater than preset threshold using accounting rate.Electronic equipment
The speed of service and its memory size it is closely bound up, when the memory of wholesale terminal is occupied excessive, the operation of wholesale terminal
Speed can be slack-off, therefore, need to guarantee that memory (running memory RAM) remaining space of wholesale terminal fills and be enough to ensure that wholesale terminal
The speed of service.
As a preferred embodiment, hardware utilization rate is that CPU uses accounting rate, judge that the hardware of wholesale terminal makes
It whether has been more than preset threshold with rate specifically: obtain the CPU of wholesale terminal using accounting rate and judge that CPU is using accounting rate
It is no to be greater than preset threshold.The speed of service of electronic equipment is related to the use accounting rate of its CPU, when CPU is excessively high using accounting rate
When, it will lead to electronic equipment operation slowly, therefore, need to guarantee that the CPU of wholesale terminal is no more than rated value using accounting rate to protect
Demonstrate,prove the speed of service of wholesale terminal.Preferably, preset threshold is set as 50%.
As a preferred embodiment, obtaining the hardware of wholesale terminal by calling corresponding hardware interface function
Utilization rate.By corresponding program come calling interface function, thus would know that wholesale terminal each hardware (as storage memory,
Running memory or CPU) service condition, it is convenient and efficient.
As a preferred embodiment, need the situation for the transaction data for updating local toy data base specifically have with
Lower two kinds:
When wholesale terminal, which generates transaction data, to be needed to save, wholesale terminal transaction data generated is updated to local
In the transaction data of toy data base, which mainly appears on wholesale terminal in the state of offline, and wholesale terminal is automatic
Off-line trading data are generated, is then store in local toy data base, when wholesale terminal is connected to network, then will hand over offline
Easy data are synchronized on background server.
When wholesale terminal receives the new transaction data of background server transmission, background server is sent new
Transaction data is updated into the transaction data of local toy data base, and the data which mainly works as background server update it
Afterwards, the data that wholesale terminal is updated background server synchronize.
The present invention also provides a kind of wholesale terminal, including processor and memory, the memory is stored with executable
Computer program, the processor can be read the computer program and run the data to realize a kind of above-mentioned wholesale terminal
Update method.
The present invention also provides a kind of data update systems of wholesale terminal, which is characterized in that including wholesale terminal with after
Platform server, the wholesale terminal can be communicated with the background server, and the wholesale terminal includes processor and storage
Device, the memory are stored with executable computer program, and the processor can be read the computer program and run with reality
A kind of data-updating method of existing above-mentioned wholesale terminal.
The system can make wholesale terminal when updating the data in itself local toy data base, detect wholesale terminal
Hardware service condition to judging whether to need to cover legacy data.When the hardware utilization rate of wholesale terminal has been more than preset threshold
Afterwards, the data of update carry out data cover since the data established earliest, to guarantee that it is enough that the hardware of wholesale terminal has
Use space avoids causing wholesale terminal card machine occur since amount of storage is excessive to guarantee the operational efficiency of wholesale terminal
The phenomenon that.
In addition, computer-readable recording medium storage has can the present invention also provides a kind of computer readable storage medium
Computer program is executed, computer program can realize the data-updating method of above-mentioned wholesale terminal when running.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.
Claims (10)
1. a kind of data-updating method of wholesale terminal, which is characterized in that the wholesale terminal, which has, is used for store transaction data
Local toy data base, method includes the following steps:
When needing to update the transaction data of local toy data base, obtains the hardware utilization rate of the wholesale terminal and judge institute
State whether hardware utilization rate has been more than preset threshold;
If it is not, the number of deals updated needed for then being stored one by one in new storage location according to the time sequencing of every transaction data
According to;
If so, by the transaction data of update cover time earliest transaction data in chronological order.
2. the data-updating method of wholesale terminal as described in claim 1, which is characterized in that the hardware utilization rate is storage
Memory capacity accounting rate, whether the hardware utilization rate for judging the wholesale terminal has been more than preset threshold specifically:
The storage memory of wholesale terminal is obtained to have stored memory with capacity accounting rate and judging whether capacity accounting rate has been used to be greater than default
Threshold value.
3. the data-updating method of wholesale terminal as described in claim 1, which is characterized in that the hardware utilization rate is memory
Using accounting rate, whether the hardware utilization rate for judging the wholesale terminal has been more than preset threshold specifically: is obtained wholesale
The memory of terminal is using accounting rate and judges whether memory is greater than preset threshold using accounting rate.
4. the data-updating method of wholesale terminal as described in claim 1, which is characterized in that the hardware utilization rate is CPU
Using accounting rate, whether the hardware utilization rate for judging the wholesale terminal has been more than preset threshold specifically: is obtained wholesale
The CPU of terminal is using accounting rate and judges whether CPU is greater than preset threshold using accounting rate.
5. such as the data-updating method of the described in any item wholesale terminals of claim 2 to 4, which is characterized in that the default threshold
Value is 50%.
6. the data-updating method of wholesale terminal as described in claim 1, which is characterized in that by calling corresponding hardware to connect
Mouthful function obtains the hardware utilization rate of wholesale terminal.
7. the data-updating method of wholesale terminal as described in claim 1, which is characterized in that need to update local small-sized data
The situation of the transaction data in library specifically has following two:
When the wholesale terminal, which generates transaction data, to be needed to save, the wholesale terminal transaction data update generated is arrived
In the transaction data of local toy data base;
When the wholesale terminal receives the new transaction data of background server transmission, the background server is sent
New transaction data is updated into the transaction data of local toy data base.
8. a kind of wholesale terminal, which is characterized in that including processor and memory, the memory is stored with executable computer
Program, the processor can be read the computer program and run to realize one kind as described in any one of claim 1 to 7
The data-updating method of wholesale terminal.
9. a kind of data update system of wholesale terminal, which is characterized in that described wholesale including wholesale terminal and background server
Terminal can be communicated with the background server, and the wholesale terminal includes processor and memory, the memory storage
There is executable computer program, the processor can be read the computer program and run to realize such as claim 1 to 7 times
A kind of data-updating method of wholesale terminal described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has executable meter
Calculation machine program, the computer program can realize the data of wholesale terminal as described in any one of claim 1 to 7 more when running
New method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811188947.4A CN109359119A (en) | 2018-10-12 | 2018-10-12 | The data-updating method of wholesale terminal, wholesale terminal, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811188947.4A CN109359119A (en) | 2018-10-12 | 2018-10-12 | The data-updating method of wholesale terminal, wholesale terminal, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109359119A true CN109359119A (en) | 2019-02-19 |
Family
ID=65348906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811188947.4A Pending CN109359119A (en) | 2018-10-12 | 2018-10-12 | The data-updating method of wholesale terminal, wholesale terminal, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109359119A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833512A (en) * | 2010-04-22 | 2010-09-15 | 中兴通讯股份有限公司 | Method and device thereof for reclaiming memory |
CN203376817U (en) * | 2013-07-02 | 2014-01-01 | 北京松际信息技术有限公司 | Electronic clearing transaction terminal used in agricultural product wholesale market |
CN105824702A (en) * | 2016-03-22 | 2016-08-03 | 乐视云计算有限公司 | Method and terminal for managing program memory footprint |
US20160283711A1 (en) * | 2013-12-04 | 2016-09-29 | Huawei Device Co., Ltd. | eMMC Monitoring Method and Apparatus |
-
2018
- 2018-10-12 CN CN201811188947.4A patent/CN109359119A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833512A (en) * | 2010-04-22 | 2010-09-15 | 中兴通讯股份有限公司 | Method and device thereof for reclaiming memory |
CN203376817U (en) * | 2013-07-02 | 2014-01-01 | 北京松际信息技术有限公司 | Electronic clearing transaction terminal used in agricultural product wholesale market |
US20160283711A1 (en) * | 2013-12-04 | 2016-09-29 | Huawei Device Co., Ltd. | eMMC Monitoring Method and Apparatus |
CN105824702A (en) * | 2016-03-22 | 2016-08-03 | 乐视云计算有限公司 | Method and terminal for managing program memory footprint |
Non-Patent Citations (1)
Title |
---|
郑文静,等: "Flash存储技术", 《计算机研究与发展》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106911483B (en) | Charging method based on block chain and cloud computing platform | |
CN109756230A (en) | Data compression storage method, data compression method, device, equipment and medium | |
CN102158349A (en) | Log management device and method thereof | |
CN109685377A (en) | Recommendation method and device, electronic equipment and storage medium | |
CN107911334A (en) | Ip address risk monitoring method and application server | |
CN108415925A (en) | Electronic device, data call daily record generation and querying method and storage medium | |
CN109800204A (en) | Data distributing method and Related product | |
CN101200274A (en) | Gas station control system | |
CN105204981A (en) | Application performance test method and device | |
CN110059139A (en) | Business datum archiving method, equipment, server and computer readable storage medium | |
CN112363886A (en) | Database monitoring method, system, terminal and storage medium | |
CN105471938A (en) | Server load management method and server load management device | |
CN106358220A (en) | Detection method of abnormal contact person information, device and system | |
CN104424109B (en) | Information processing method and electronic equipment | |
CN109359119A (en) | The data-updating method of wholesale terminal, wholesale terminal, system and storage medium | |
CN108920326A (en) | Determine system time-consuming abnormal method, apparatus and electronic equipment | |
CN108347355A (en) | A kind of detection method and its equipment of application state | |
CN108038127A (en) | A kind of method, apparatus, terminal device and the storage medium of data synchronization | |
CN107092551A (en) | A kind of server system performance optimization method and device | |
CN109544330A (en) | Offline wholesaler trade information processing method, wholesale terminal, system and storage medium | |
CN109918189B (en) | Resource management method and related equipment | |
CN114241734B (en) | Immersion early warning method and device, electronic equipment and storage medium | |
CN110460723B (en) | Screen protection method and device, computer equipment and computer readable storage medium | |
CN109508356B (en) | Data abnormality early warning method, device, computer equipment and storage medium | |
CN107870960A (en) | Data move system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190219 |