CN101706829A - Data storage method and device - Google Patents

Data storage method and device Download PDF

Info

Publication number
CN101706829A
CN101706829A CN200910250714A CN200910250714A CN101706829A CN 101706829 A CN101706829 A CN 101706829A CN 200910250714 A CN200910250714 A CN 200910250714A CN 200910250714 A CN200910250714 A CN 200910250714A CN 101706829 A CN101706829 A CN 101706829A
Authority
CN
China
Prior art keywords
information
entry
entry information
position information
preset
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
Application number
CN200910250714A
Other languages
Chinese (zh)
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN200910250714A priority Critical patent/CN101706829A/en
Publication of CN101706829A publication Critical patent/CN101706829A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data storage method and a device, wherein the data storage method comprises the following steps of: receiving a plurality of pieces of entered information respectively, and marking the entered information by preset place information respectively; comparing the preset attributes of at least two pieces of the entered information, and determining the entered information with the same preset attribute through the comparison; and in the determined entered information, combining the entered information with continuous preset place information into one piece of entered information. Through the data storage method and the device, the entered information of data can be reduced and the system storage space can be optimized to improve the system performance and avoid the defect of low processing efficiency.

Description

A kind of date storage method and device
Technical field
The present invention relates to technical field of data processing, more particularly, relate to a kind of date storage method and device.
Background technology
The processing of bill is the common function of management information system.Bill is different from common document as the authority of commercial operation, and different enterprises can be used as the authority of its commercial operation and carry out monitoring management according to the bill of self actual needs design different content form, pattern.For example: the design of the bibliogony chamber of commerce can clearly demonstrate the bill of information such as book name, book classification, book number and books price; Tourist attractions can be issued and be comprised the bill that limits the use of date, denomination and limit the use of the inferior information of people.
At present, adopt the mode of manual typing and every corresponding intrasystem bill recorded information of bill usually for the system's typing after the bill distribution.Well imagine, huge when the bill quantity of distribution, then will cause the record quantity of corresponding input system sharply to increase.For example: for certain tourist attraction, if a year volume of the flow of passengers has 1,000,000 person-times, the then annual admission ticket of selling just has 1,000,000, used the KXG of gate inhibition's class when this tourist attraction, then must carry out stored record to this 1,000,000 ticket sheet, like this, will there be 1,000,000 bill recorded informations simultaneously in the input system.
By discovering, the bill recorded information bar number in input system is too much, will cause system performance to descend, and when this system handles at the bill data of being correlated with, will produce the low defective of treatment effeciency.
Summary of the invention
In view of this, the invention provides a kind of date storage method and device, can reduce data recording information bar number, the optimization system storage space to improve system performance, avoids producing the low defective of treatment effeciency.
The embodiment of the invention is achieved in that
A kind of date storage method, described method comprises:
Receive many entry informations respectively, described entry information identifies with preset position information respectively;
The preset attribute of more at least two entry informations by described comparison, is determined the entry information with identical preset attribute;
In the entry information of being determined, the entry information that preset position information is continuous is merged into an entry information.
Preferably, described method also comprises:
After the described entry information that preset position information is continuous is merged into an entry information, this entry information is identified with the start position information and the rest position information of the entry information determined.
Preferably, described method also comprises:
When the preset position information that identifies the entry information of being determined was discontinuous, then prompting merged failure information.
Preferably, described method also comprises:
When by described comparison, when determining all entry informations and not having identical preset attribute, then prompting merges failure information.
Preferably, described preset position information is note number information.
A kind of data storage device, described device comprises:
Receiving element is used for receiving respectively many entry informations, and described entry information identifies with preset position information respectively;
Comparing unit is used for the preset attribute of more at least two entry informations, by described comparison, determines the entry information with identical preset attribute;
Merge cells is used at the entry information of being determined, and the entry information that preset position information is continuous is merged into an entry information.
Preferably, described device also comprises:
Identify unit after being used for the entry information that preset position information is continuous and merging into an entry information, identifies this entry information with the start position information and the rest position information of the entry information determined.
Preferably, described device also comprises:
The information indicating unit is used for when the preset position information that identifies the entry information of being determined is discontinuous, and then prompting merges failure information.
Preferably, described information indicating unit also is used for:
When by described comparison, when determining all entry informations and not having identical preset attribute, then prompting merges failure information.
Preferably, described preset position information is note number information.
Compare with prior art, the technical scheme that the embodiment of the invention provides has the following advantages and characteristics:
The present invention is by preset attribute information, to have identical preset attribute in original many entry informations and the continuous entry information of preset position information merges, thereby can reduce data recording information bar number in the input system, the optimization system storage space, to improve system performance, avoid producing the low defective of treatment effeciency.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use among the embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of steps of a kind of date storage method embodiment of the present invention;
Fig. 2 is the structured flowchart of a kind of data storage device of the present invention;
Fig. 3 is the structured flowchart of the another kind of data storage device of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.
In the system or software that the present invention can be applied to realize based on database, database is to organize and deposit data acquisition in the second-level storage according to certain data model.This data acquisition has following characteristics: do not repeat as far as possible, with optimum way is the multiple application service of certain particular organization, its data structure is independent of the application program of using it, increasing, delete, changing and retrieve by unifying software and manage and control data.
In the prior art, for ticket management system, the recorded information of typing is corresponding one by one with bill in the system, therefore, the number of recorded information is identical with the number of bill. and when having a large amount of bills, recorded information factor amount is numerous accordingly will occupy storage spaces a large amount of in the input system, will cause system performance to descend when serious, when this system handles at the bill data of being correlated with, will produce the low defective of treatment effeciency.
For fear of above-mentioned defective, the invention provides a kind of date storage method, with reference to figure 1, show the flow chart of steps of a kind of date storage method embodiment of the present invention, specifically can may further comprise the steps:
Step 101, receive many entry informations respectively, described entry information identifies with preset position information respectively;
The preset attribute of step 102, more at least two entry informations by described comparison, is determined the entry information with identical preset attribute;
Step 103, in the entry information of being determined, the entry information that preset position information is continuous is merged into an entry information.
The embodiment of the invention is by preset attribute information, to have identical preset attribute in original many entry informations and the continuous entry information of preset position information merges, when existing in the input system when having the continuous entry information of identical preset attribute and preset position information in a large number, this union operation will significantly reduce the number of original entry information, thereby can reduce data recording information bar number in the input system, the optimization system storage space, to improve system performance, avoid producing the low defective of treatment effeciency.
After the entry information that preset position information is continuous is merged into an entry information, this entry information is identified with the start position information and the rest position information of the entry information determined.
Technical solution of the present invention when the preset position information that identifies the entry information of being determined is discontinuous, is then pointed out to merge failure information in the specific implementation; When by described comparison, when determining all entry informations and not having identical preset attribute, then prompting merges failure information; With in real time to user feedback data storage result this time.
Be example still below, technical solution of the present invention is described in detail with the ticket management system that occurs in the background technology.Usually, bill identifies by note number information, and according to providing batch, note number is continuous.Described preset attribute is input system managerial personnel operations for convenience, the merging attribute that sets in advance, to this, the present invention does not do concrete restriction, those skilled in the art can rationally be provided with according to actual needs, for example: use date, user mode preset attribute such as (for example: comprise and use or do not use).Merge in the processing operating process in the later stage, has identical attribute if judge some entry information, then whether the note number of the bill of corresponding these entry informations of continuation judgement is continuous, if the note number of corresponding bill is continuous, then the entry information with these bill correspondences merges.
Entry information after the merging can identify with the beginning note number of the entry information that merged and by note number.Make by the record after this merging, can know the current state of the corresponding bill that this record of understanding relates to.
In merging process, control flexibly in order to make managerial personnel can be combined processing procedure, can in input system, offer an attribute interface, this attribute interface can provide the preset attribute input function to managerial personnel, for example: represent corresponding physics literary name section to managerial personnel, which comprise: use date, user mode (for example: comprise and use or do not use) etc., by managerial personnel described union operation is set freely and carries out according to field.
Correspondingly, in judging described entry information, do not have identical preset attribute between some bar, then merge failure.In addition, in judging described entry information, have identical preset attribute between some bar, and note number then merges failure when discontinuous, still keeps former entry information state constant.Corresponding display interface can be set, feed back above-mentioned relevant treatment result to managerial personnel.
It will be appreciated by persons skilled in the art that this union operation carries out after can being arranged on the bill distribution at once; Perhaps, be arranged in the preset time section and carry out, for example morning the user operate the less time period and carry out.
Need to prove, for certain bar entry information through merge handling, its correspondence a plurality of bills, when needs when wherein certain bill is operated, need this billing information is split through merging the entry information of handling from current.This fractured operation simply is described below: determine to carry out the pairing billing information of fractured operation, for example note number by searching, separates with current this bill through merging the entry information of handling, become a new entry information, identify with the association attributes after the operation.If desired a plurality of bills are operated,,, become many new entry informations until with these a plurality of bills and currently separate through merging the entry information of handling then according to the treatment step of this sola bill deconsolidation process that circulates.Equally, a plurality of bills after splitting are after handling operation, if have identical preset attribute, then continue these many new entry informations are carried out union operation, to reduce the number of entry information, thereby can the optimization system storage space, to improve system performance, avoid producing the low defective of treatment effeciency.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, describe below by a specific embodiment.
For be file layout as following table 1 through the current entry information of merge handling, as seen, 1,000,000 bills have been merged into an entry information owing to having certain identical preset attribute.When needs right
Table 1 is through merging the current entry information file layout of handling
The beginning draft bank By draft bank
??1 ??1000000
Wherein note number is that 99 bill is handled operation, and then needing note number is that 99 bill splits from 1,000,000 bills, and then after the fractured operation, the file layout of former entry information is updated to the file layout as following table 2:
The entry information file layout of table 2 table 1 after deconsolidation process
The beginning draft bank By draft bank
??1 ??98
??99 ??99
??100 ??1000000
If to note number is that 100 bill carries out same deconsolidation process operation, then corresponding entry information file layout is as shown in table 3:
The another entry information file layout of table 3 table 1 after deconsolidation process
??… The beginning draft bank By draft bank Date State
??… ??1 ??98 ??NULL Do not use
??… The beginning draft bank By draft bank Date State
??… ??99 ??99 ??2009-08-11 In the use
??… ??100 ??100 ??2009-08-11 Use
??… ??101 ??1000000 ??NULL Do not use
As seen, after using note number and be 99 bill, if preset attribute is: when date and state, then note number is 99 to have identical attribute with 100 bill, and note number is continuous, then according to combination principle, this note number is that two entry informations of 99 and 100 bill correspondence can merge processing.After merging processing, the entry information file layout of table 3 is updated to as shown in table 4 below:
Table 4 table 3 is through merging the entry information file layout after handling
The beginning draft bank By draft bank Date State
??1 ??98 ??NULL Do not use
??99 ??100 ??2009-08-11 Use
??101 ??1000000 ??NULL Do not use
Because note number is that the bill of 1-98,101-1000000 is discontinuous, therefore, can not merge, and still keeps current entry information constant.
It will be understood by those skilled in the art that, the present invention in order to guarantee the correctness of entry information file layout, also needs in the technical solution of the present invention verification is carried out in the stored record that is generated when specific implementation, if file layout is correct, then current the preservation successfully; If not, then current preservation failure.This checking procedure can in time carry out behind the updated stored record, also can carry out automatic verification to current stored record according to actual needs in the time period of presetting, and to this, the present invention does not do concrete qualification at this.
For aforesaid method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration, for example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, comprise distributed computing environment of above any system or equipment or the like.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, program module for example. usually, program module comprises to be carried out particular task or realizes program, object, assembly or data structure of particular abstract or the like, also can in distributed computing environment, put into practice the present invention. in these distributed computing environment, by by communication network connected teleprocessing equipment execute the task. in distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
The method of corresponding above-mentioned data storage, the present invention shows a kind of data storage device embodiment, as shown in Figure 2, is the structured flowchart of this data storage device, and described device specifically can comprise with lower module:
Receiving element 201 is used for receiving respectively many entry informations, and described entry information identifies with preset position information respectively;
Comparing unit 202 is used for the preset attribute of more at least two entry informations, by described comparison, determines the entry information with identical preset attribute;
Merge cells 203, in the entry information of being determined, the entry information that preset position information is continuous is merged into an entry information.
Described data storage device is by preset attribute information, to have identical preset attribute in original many entry informations and the continuous entry information of preset position information merges, thereby can reduce data recording information bar number in the input system, the optimization system storage space, to improve system performance, avoid producing the low defective of treatment effeciency.
In another embodiment of the present invention, as shown in Figure 3, described data storage device also comprises:
Identify unit 204 after being used for the entry information that preset position information is continuous and merging into an entry information, identifies this entry information with the start position information and the rest position information of the entry information determined.Make by the record after this merging, can know the current state of the corresponding bill that this record of understanding relates to.
Information indicating unit 205 is used for prompting and merges failure information.
When the preset position information that identifies the entry information of being determined was discontinuous, then prompting merged failure information.In addition, when by described comparison, when determining all entry informations and not having identical preset attribute, then prompting merges failure information, still keeps former entry information state constant.Merge cells 203 can be set have corresponding display interface, feed back above-mentioned relevant treatment result to managerial personnel.
It will be appreciated by persons skilled in the art that this union operation carries out after can being arranged on the bill distribution at once; Perhaps, be arranged in the preset time section and carry out, for example morning the user operate the less time period and carry out.
Need to prove that each embodiment in this instructions all adopts the mode of going forward one by one to describe, what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device class embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (10)

1. a date storage method is characterized in that, described method comprises:
Receive many entry informations respectively, described entry information identifies with preset position information respectively;
The preset attribute of more at least two entry informations by described comparison, is determined the entry information with identical preset attribute;
In the entry information of being determined, the entry information that preset position information is continuous is merged into an entry information.
2. date storage method according to claim 1 is characterized in that, described method also comprises:
After the described entry information that preset position information is continuous is merged into an entry information, this entry information is identified with the start position information and the rest position information of the entry information determined.
3. date storage method according to claim 1 is characterized in that, described method also comprises:
When the preset position information that identifies the entry information of being determined was discontinuous, then prompting merged failure information.
4. date storage method according to claim 1 is characterized in that, described method also comprises:
When by described comparison, when determining all entry informations and not having identical preset attribute, then prompting merges failure information.
5. according to each described date storage method among the claim 1-4, it is characterized in that described preset position information is note number information.
6. a data storage device is characterized in that, described device comprises:
Receiving element is used for receiving respectively many entry informations, and described entry information identifies with preset position information respectively;
Comparing unit is used for the preset attribute of more at least two entry informations, by described comparison, determines the entry information with identical preset attribute;
Merge cells is used at the entry information of being determined, and the entry information that preset position information is continuous is merged into an entry information.
7. data storage device according to claim 6 is characterized in that, described device also comprises:
Identify unit after being used for the entry information that preset position information is continuous and merging into an entry information, identifies this entry information with the start position information and the rest position information of the entry information determined.
8. data storage device according to claim 6 is characterized in that, described device also comprises:
The information indicating unit is used for when the preset position information that identifies the entry information of being determined is discontinuous, and then prompting merges failure information.
9. data storage device according to claim 6 is characterized in that, described information indicating unit also is used for:
When by described comparison, when determining all entry informations and not having identical preset attribute, then prompting merges failure information.
10. according to each described data storage device among the claim 6-9, it is characterized in that described preset position information is note number information.
CN200910250714A 2009-12-09 2009-12-09 Data storage method and device Pending CN101706829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910250714A CN101706829A (en) 2009-12-09 2009-12-09 Data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910250714A CN101706829A (en) 2009-12-09 2009-12-09 Data storage method and device

Publications (1)

Publication Number Publication Date
CN101706829A true CN101706829A (en) 2010-05-12

Family

ID=42377054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910250714A Pending CN101706829A (en) 2009-12-09 2009-12-09 Data storage method and device

Country Status (1)

Country Link
CN (1) CN101706829A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360476A (en) * 2011-10-28 2012-02-22 中国舰船研究设计中心 Method for synchronously processing cascade secret-level setting information
CN102685116A (en) * 2012-04-25 2012-09-19 中兴通讯股份有限公司 Processing method and processing device for counting middle message
CN103226620A (en) * 2013-03-25 2013-07-31 南京南瑞继保电气有限公司 State information processing method for SMC modules
CN105718453A (en) * 2014-12-01 2016-06-29 金蝶软件(中国)有限公司 Data importing method and system
CN106447491A (en) * 2016-08-31 2017-02-22 武汉票据交易中心有限公司 Bill verification method, system and apparatus of bill position
CN108961081A (en) * 2018-07-03 2018-12-07 中国银行股份有限公司 A kind of silver protects voucher management system and method
CN111353885A (en) * 2018-12-21 2020-06-30 上海萌翼网络科技有限公司 Endorsement trajectory tracking system and method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360476A (en) * 2011-10-28 2012-02-22 中国舰船研究设计中心 Method for synchronously processing cascade secret-level setting information
CN102360476B (en) * 2011-10-28 2013-09-11 中国舰船研究设计中心 Method for synchronously processing cascade secret-level setting information
CN102685116A (en) * 2012-04-25 2012-09-19 中兴通讯股份有限公司 Processing method and processing device for counting middle message
CN103226620A (en) * 2013-03-25 2013-07-31 南京南瑞继保电气有限公司 State information processing method for SMC modules
CN103226620B (en) * 2013-03-25 2016-01-20 南京南瑞继保电气有限公司 A kind of SMC module status information disposal route
CN105718453A (en) * 2014-12-01 2016-06-29 金蝶软件(中国)有限公司 Data importing method and system
CN105718453B (en) * 2014-12-01 2019-07-09 金蝶软件(中国)有限公司 The method and system that data import
CN106447491A (en) * 2016-08-31 2017-02-22 武汉票据交易中心有限公司 Bill verification method, system and apparatus of bill position
CN108961081A (en) * 2018-07-03 2018-12-07 中国银行股份有限公司 A kind of silver protects voucher management system and method
CN111353885A (en) * 2018-12-21 2020-06-30 上海萌翼网络科技有限公司 Endorsement trajectory tracking system and method

Similar Documents

Publication Publication Date Title
CN101706829A (en) Data storage method and device
CN101430661A (en) Method, system and apparatus for test data batch generation
CN104361139A (en) Data importing device and method
CN101625686A (en) Method and system for monitoring data consistency between plurality of databases
CN101504672A (en) Method and system for dynamically configuring physical data table
CN103748579A (en) Processing data in a mapreduce framework
CN101158977A (en) Method and system for processing multiple services bills data
CN101655871A (en) Method and device for storing and inquiring data
CN102890720A (en) Database inspection and maintenance method
CN102081762A (en) Inspection rule design support method, system and program
CN105184943A (en) Appointment number arranging method and device
CN103176989A (en) Method and system used for comparing database table levels and based on data dictionary and variable rules
CN102722537A (en) Database test data generation method and system thereof
CN100587740C (en) Tax-control data declaration, checking treatment method of network tax-control system
CN101770469A (en) Page based data query method and system thereof
CN103198087A (en) Associative memory technology for analysis of requests for proposal
CN101702219A (en) Method for generating material information and device thereof
US11748368B1 (en) Data field transaction repair interface
US8195536B2 (en) Activity information accounting system
CN111143421A (en) Data sharing method and device, electronic equipment and storage medium
CN102376104A (en) Wireless fingerprint attendance system
CN101661586A (en) Method of optimized data processing procedure and device thereof
CN102866985B (en) For data formatter and the method for on-line analysing processing system
JP6151560B2 (en) Accounting book information processing apparatus, accounting book information processing apparatus control method, accounting book processing apparatus program, and recording medium
CN102479353A (en) Method and device for generating reimbursement list by using credit card in enterprise resource planning (ERP) system and ERP system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20100512