[go: up one dir, main page]

CN104573078A - Server and data storage applying method and device therefor - Google Patents

Server and data storage applying method and device therefor Download PDF

Info

Publication number
CN104573078A
CN104573078A CN201510041486.8A CN201510041486A CN104573078A CN 104573078 A CN104573078 A CN 104573078A CN 201510041486 A CN201510041486 A CN 201510041486A CN 104573078 A CN104573078 A CN 104573078A
Authority
CN
China
Prior art keywords
data
content
user
database
edition
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
CN201510041486.8A
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.)
Shenzhen ZTE Mobile Telecom Co Ltd
Original Assignee
Shenzhen ZTE Mobile Telecom 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 Shenzhen ZTE Mobile Telecom Co Ltd filed Critical Shenzhen ZTE Mobile Telecom Co Ltd
Priority to CN201510041486.8A priority Critical patent/CN104573078A/en
Publication of CN104573078A publication Critical patent/CN104573078A/en
Pending legal-status Critical Current

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/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • G06F16/2329Optimistic concurrency control using versioning
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2219Large Object storage; Management thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a server and a data storage applying method and device therefor and belongs to the technical field of servers. The method is applied to the server; a database of the server independently stores version data and content data belonging to an object, with the object as a unit; the method includes: on receiving a command of editing the database, acquiring an object to be edited, selected by a user; receiving the version data and/or content data of the object, input by the user; storing the received version data and/or content data in the corresponding object. The server and the data storage applying method and device therefor have the advantages that maintenance of the database is more specific, the related data range includes only objects to be updated, and the database is easier to update and maintain.

Description

The application process that server and data thereof store and device
Technical field
The present invention relates to server technology field, be specifically related to application process and the device of server and data storage thereof.
Background technology
The sorting technique of available data library storage data is integrally stored all the elements data in user list, and edition data information corresponding for this user list is stored separately, content-data in database and edition data are separate, the benefit of such storage is covered all at one glance by all entity objects in user list, being convenient to the attribute for checking all entity objects in database and each entity object, also facilitating user to carry out unified management simultaneously.
But the storage organization of existing this database makes database there is many defects in maintenance with when upgrading, and inapplicable all situations, such as database is when upgrading, often only need to upgrade certain the several entity object in database user list, storage organization due to existing database causes all entity objects in user list to bundle, the version information of each entity object also bundles, cause when renewal and maintenance data base, its content-data and edition data will be upgraded respectively to an entity object, cause renewal process complicated.
In addition, bundling when being also the content-data due to each entity object, when there being a user at maintenance data base, is exclusive to the content-data in this database, do not allow synchronization to have other user to safeguard this database, make the maintenance efficiency of database low.
Summary of the invention
The invention provides application process and the device of server and data storage thereof, to be reached through the object providing a kind of new database store structure to cause the renewal of database to be more prone to, overcome the defect that the maintenance efficiency of above-mentioned prior art to database is low.
The technical scheme that the present invention solves the problems of the technologies described above is as follows.
According to an aspect of the present invention, the application process that a kind of data provided store, the method is applied to server, and the database of this server will belong to edition data and the content-data separate, stored of this object in units of object, and the method comprises:
When receiving the instruction in editing data storehouse, obtain the edit object that user selects;
Receive edition data and/or the content-data of the object of user's input;
Under the edition data received and/or content-data being stored in corresponding object.
Preferably, the content-data of above-mentioned object comprises the data of different attribute, and when the data of different attribute are simultaneously by editor, the application process that these data store also comprises:
Receive the content-data of the different attribute of user's input;
Receive when holding instruction, the content-data that will receive different attribute merges to be preserved.
Preferably, the content-data of above-mentioned object comprises the data of different attribute, and when the content-data of same attribute is simultaneously by multi-party users editor, the application process that these data store also comprises:
Receive the different content-data of the same attribute of same target of each side user input;
Receive when holding instruction, all the elements data that show needle arrives the same attribute reception of same target;
The content-data of wherein side user's input is preserved according to the selection of user.
Preferably, the application process that these data store also comprises:
Receive database lock instruction time, obtain user select the object that locks;
The object got is locked separately.
Preferably, before the edition data of object receiving user's input and/or the step of content-data, the application process that these data store also comprises:
Judge after obtaining the edit object of user's selection whether the object obtained is the object that locks, and if so, then sends the object that locks and forbids by the prompting of editing, and reject edition data and/or the content-data of user's input.
Preferably, the application process that these data store also comprises:
When receiving the instruction of newly-increased object, prompting user inputs the data of newly-increased object;
Receive edition data and/or the content-data of the newly-increased object of user's input;
Under the edition data received and/or content-data being kept at corresponding newly-increased object.
According to another aspect of the present invention, the application apparatus that a kind of data provided store, the database of this device will belong to edition data and the content-data separate, stored of this object in units of object, this device comprises: object acquisition module, during for receiving the instruction in editing data storehouse, obtain the edit object that user selects;
Data reception module, for receiving edition data and/or the content-data of the object of user's input;
Memory module, under being stored in corresponding object by the edition data received and/or content-data.
Preferably, this device also comprises:
The object acquisition that locks module, for receive database lock instruction time, obtain user select the object that locks;
Add lock module, for locking separately to the object got.
Preferably, this device also comprises:
Judge module, for obtain user select edit object after judge obtain object whether be the object that locks;
Reminding module, for when obtain object for lock object time, send the object that locks and forbid by the prompting of editing, and reject user input edition data and/or content-data.
According to a further aspect of the invention, a kind of server provided, this server comprises the application apparatus that above-mentioned data store.
The invention provides application process and the device of server and data storage thereof, by the database of server will be belonged to edition data and the content-data separate, stored of this object in units of object, make user when editor or maintenance update data, can upgrade separately in units of object or safeguard, and also can safeguard the content-data of object and edition data simultaneously, the edition data of more new database need not be removed after the content-data of more new database more again, the invention enables the maintenance of database have more as specific aim, and the data area related to is only the object that needs upgrade, the updating maintenance of database is more prone to.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the application process that data according to an embodiment of the invention store;
Fig. 2 is the process flow diagram of the application process that data according to another embodiment of the present invention store;
Fig. 3 is the process flow diagram of the application process that data according to still another embodiment of the invention store;
Fig. 4 is the process flow diagram of the application process stored according to the data of one more embodiment of the present invention;
Fig. 5 is the exemplary block diagram of the application apparatus that data according to an embodiment of the invention store;
Fig. 6 is the exemplary block diagram of server according to an embodiment of the invention.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
Embodiment one
Fig. 1 is the process flow diagram of the application process that data according to an embodiment of the invention store, the application process of data according to an embodiment of the invention storage is described below in conjunction with Fig. 1, the method is applied to server, the database of this server will belong to edition data and the content-data separate, stored of this object in units of object, as shown in Figure 1, the method comprises the following steps:
S100, when receiving the instruction in editing data storehouse, obtain the edit object that user selects;
S200, the edition data receiving the object of user's input and/or content-data;
S300, the edition data received and/or content-data be stored in corresponding object under.
Wherein, the instruction in above-mentioned editing data storehouse such as receives the order of write data code, receives code commands that is newly-increased or delete entity object.
Above-mentioned object and database coding in key, when database is used in book management system, the i.e. book of an object, the attribute the such as whether attribute of the content-data that this object (book) comprises includes but not limited to the internal number of title, book, be lent; When database is used in Education Administration Information System, an i.e. student of object, the attribute of the content-data that this object comprises includes but not limited to the total marks of the examination of the name of this student, student number, affiliated specialty and each section; When database is used in contact management system, an i.e. contact person of object, the attribute of the content-data of this object includes but not limited to the Business Name etc. at the name of this contact person stored, home address, place.
The instruction in above-mentioned editing data storehouse includes but not limited to renewal to existing object, deletes existing object, locks to the object that locks/unlock, newly-increased object, when the instruction in editing data storehouse comprises newly-increased object, the application process that these data store also comprises:
When receiving the instruction of newly-increased object, prompting user inputs the data of newly-increased object;
Receive edition data and/or the content-data of the newly-increased object of user's input;
Under the edition data received and/or content-data being kept at corresponding newly-increased object.
The present embodiment by belonging to edition data and the content-data separate, stored of this object by the database of server in units of object, make user when editing service data, only with the object that editor's need upgrades, making when maintenance data base need not in the face of all data, time database maintenance easier more targetedly.
Embodiment two
Fig. 2 is the process flow diagram of the application process that data according to another embodiment of the present invention store, the content-data of above-mentioned object comprises the content-data of different attribute, when the data of different attribute are simultaneously by editor, as shown in Figure 2, the method is on the basis comprising above-mentioned steps S100, and above-mentioned steps S200 specifically comprises:
The content-data of the same target different attribute of S210, reception user input.
Above-mentioned steps S300 is specially:
S310, receive when holding instruction, the content-data of the different attribute received is merged under being kept at corresponding object.
According to a use scenes of the present invention such as: in Education Administration Information System during typing student performance, a user is responsible for the achievement of this subject of input computer basis, another user is responsible for the achievement of this subject of typing soft project, when two users record this two achievements of student A simultaneously, the achievement of this two subjects is merged storage by database automatically.
The present embodiment make the object stored in database be all each independently, each entity object all has respective edition data and content-data, make database can upgrade separately the object of specific design when calling or safeguard, instead of database is whole, simplify the content involved by renewal, offer convenience to programmer.
Embodiment three
Fig. 3 is the process flow diagram of the application process that data according to still another embodiment of the invention store, the content-data of above-mentioned object comprises the content-data of different attribute, when the data of same attribute are simultaneously by multi-party users editor, as shown in Figure 3, the method is on the basis comprising above-mentioned steps S100, and above-mentioned steps S200 is specially:
The content-data of the same attribute of same target of S210, reception each side user input.
Above-mentioned steps S300 specifically comprises:
S321, receive when holding instruction, all the elements data that show needle arrives the same attribute reception of described same target;
S322, preserve the content-data of wherein side user's input according to the selection of user.
The present embodiment makes, when the same attribute of same target is revised by multi-party users simultaneously, automatically to show all the elements data of this same attribute, bring prompting to user, decrease the generation that multi-party users conflicts when database combining.
Embodiment four
Fig. 4 is the process flow diagram of the application process stored according to the data of one more embodiment of the present invention, and as shown in Figure 4, the method, on the basis comprising above-mentioned steps S100, S300, also comprises:
S010, receive database lock instruction time, obtain user select the object that locks;
S020, the object got to be locked separately.
After obtaining the edit object of user's selection in the step s 100, also comprise:
S101, judge obtain object whether be the object that locks;
Above-mentioned steps S200 is specially:
S240, when obtain object for lock object time, send the object that locks and forbid by the prompting of editing, and reject user input edition data and/or content-data.
Optionally, before the edition data of object receiving user's input and/or the step of content-data, the method also comprises:
Judge after obtaining the edit object of user's selection whether the object obtained is the object that locks, and if so, then sends the object that locks and forbids by the prompting of editing, and reject edition data and/or the content-data of user's input.
According to the use scenes of the present embodiment such as: in contact management system, when user uses the database structure of prior art to lock to contact person, content-data due to all objects in database is an entirety, user can only lock when locking all contact persons, and certain concrete contact person can not be related to, according to the application process that data provided by the invention store, by independent for each object in database, such user is when locking contact person, a few individuals that can only lock in contact person, and need not be locked everyone, for the contact person after locking, other users are when maintenance update database, the artificial read-only data of the contact locked, other people can not change the contact person that locks, until this contact person unlocks.
The present embodiment, by providing a kind of separately for certain object in database carries out the method that locks, makes user can separately for certain object locks, to realize more requirement of programming in the such as system such as contact management system, taking care of books.
Embodiment five
Fig. 5 is the exemplary block diagram of the application apparatus that data according to an embodiment of the invention store, the application apparatus 100 of data according to an embodiment of the invention storage is described according to Fig. 5 below, the database of this device will belong to edition data and the content-data separate, stored of this object in units of object, as shown in Figure 5, this device comprises:
Object acquisition module 10, during for receiving the instruction in editing data storehouse, obtains the edit object that user selects;
Data reception module 20, for receiving edition data and/or the content-data of the object of user's input;
Memory module 30, under being stored in corresponding object by the edition data received and/or content-data.
Wherein, optionally, the application apparatus 100 that these data store also comprises:
The object acquisition that locks module, for receive database lock instruction time, obtain user select the object that locks;
Add lock module, for locking separately to the object got.
Judge module, for obtain user select edit object after judge obtain object whether be the object that locks;
Reminding module, for when obtain object for lock object time, send the object that locks and forbid by the prompting of editing, and reject user input edition data and/or content-data.
The application apparatus that the present embodiment stores by providing a kind of data, this device makes user when editing service data by running the application process using above-mentioned data to store, only with the object that editor's need upgrades, making when maintenance data base need not in the face of all data, time database maintenance easier more targetedly.
Embodiment six
Fig. 6 is the exemplary block diagram of server according to an embodiment of the invention, server 11 as shown in Figure 5, and this server comprises the application apparatus 100 that above-mentioned data store.
The present invention by belonging to edition data and the content-data separate, stored of this object by the database of server in units of object, make user when editor or maintenance update data, can upgrade separately in units of object or safeguard, also can safeguard the content-data of object and edition data simultaneously, the edition data of more new database need not be removed after the content-data of more new database more again, the invention enables the maintenance of database have more as specific aim, and the data area related to is only the object that needs upgrade, the updating maintenance of database is more prone to.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. an application process for data storage, described method is applied to server, it is characterized in that, the database of described server will belong to edition data and the content-data separate, stored of this object in units of object, and described method comprises:
When receiving the instruction of editing described database, obtain the edit object that user selects;
Receive edition data and/or the content-data of the described object of user's input;
Under the described edition data received and/or content-data being stored in corresponding object.
2. the application process of data storage according to claim 1, it is characterized in that, the content-data of described object comprises the data of different attribute, and when the data of described different attribute are simultaneously by editor, described method also comprises:
Receive the content-data of the same target different attribute of user's input;
Receive when holding instruction, the content-data that will receive different attribute merges to be preserved.
3. the application process of data storage according to claim 1, it is characterized in that, the content-data of described object comprises the data of different attribute, and when the data of described same attribute are simultaneously by multi-party users editor, described method also comprises:
Receive the content-data of the same attribute of same target of each side user input;
Receive when holding instruction, all the elements data that show needle arrives the same attribute reception of described same target;
The content-data of wherein side user's input is preserved according to the selection of user.
4. the application process of data storage according to claim 1, it is characterized in that, described method also comprises:
Receive described database lock instruction time, obtain user select the object that locks;
The described object got is locked separately.
5. the application process of data storage according to claim 4, is characterized in that, before the edition data of described object and/or the step of content-data of described reception user input, described method also comprises:
Judge after obtaining the edit object of user's selection whether the described object obtained is the object that locks, and if so, then sends the object that locks and forbids by the prompting of editing, and reject edition data and/or the content-data of user's input.
6. the application process that the data according to any one of claim 1 to 5 store, it is characterized in that, described method also comprises:
When receiving the instruction of newly-increased object, prompting user inputs the data of newly-increased object;
Receive edition data and/or the content-data of the newly-increased object of user's input;
Under the edition data received and/or content-data being kept at corresponding newly-increased object.
7. an application apparatus for data storage, it is characterized in that, the database of described device will belong to edition data and the content-data separate, stored of this object in units of object, and described device comprises:
Object acquisition module, during for receiving the instruction of editing described database, obtains the edit object that user selects;
Data reception module, for receiving edition data and/or the content-data of the described object of user's input;
Memory module, under being stored in corresponding object by the described edition data received and/or content-data.
8. device according to claim 7, is characterized in that, described device also comprises:
The object acquisition that locks module, for receive described database lock instruction time, obtain user select the object that locks;
Add lock module, for locking separately to the described object got.
9. the device according to claim 7 or 8, is characterized in that, described device also comprises:
Judge module, for obtain user select edit object after judge obtain described object whether be the object that locks;
Reminding module, for when obtain described object for lock object time, send the object that locks and forbid by the prompting of editing, and reject user input edition data and/or content-data.
10. a server, is characterized in that, described server comprises the application apparatus that the data described in any one of the claims 7 ~ 9 store.
CN201510041486.8A 2015-01-27 2015-01-27 Server and data storage applying method and device therefor Pending CN104573078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510041486.8A CN104573078A (en) 2015-01-27 2015-01-27 Server and data storage applying method and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510041486.8A CN104573078A (en) 2015-01-27 2015-01-27 Server and data storage applying method and device therefor

Publications (1)

Publication Number Publication Date
CN104573078A true CN104573078A (en) 2015-04-29

Family

ID=53089140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510041486.8A Pending CN104573078A (en) 2015-01-27 2015-01-27 Server and data storage applying method and device therefor

Country Status (1)

Country Link
CN (1) CN104573078A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578949A (en) * 2001-11-09 2005-02-09 无锡永中科技有限公司 Integrated data processing system with links
CN1845076A (en) * 2006-05-11 2006-10-11 复旦大学 Consistency Maintenance Method for XML-Oriented Mark Backtracking
US20120101980A1 (en) * 2010-10-26 2012-04-26 Microsoft Corporation Synchronizing online document edits
CN103425630A (en) * 2012-11-30 2013-12-04 上海理工大学 Cooperation system framework and consistency maintenance method thereof
CN103825930A (en) * 2013-11-12 2014-05-28 浙江省水文局 Real-time data synchronization method in distributed environment
CN104063446A (en) * 2014-06-17 2014-09-24 沈阳龙天科技有限公司 Multi-user-generated content version control method and implementation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578949A (en) * 2001-11-09 2005-02-09 无锡永中科技有限公司 Integrated data processing system with links
CN1845076A (en) * 2006-05-11 2006-10-11 复旦大学 Consistency Maintenance Method for XML-Oriented Mark Backtracking
US20120101980A1 (en) * 2010-10-26 2012-04-26 Microsoft Corporation Synchronizing online document edits
CN103425630A (en) * 2012-11-30 2013-12-04 上海理工大学 Cooperation system framework and consistency maintenance method thereof
CN103825930A (en) * 2013-11-12 2014-05-28 浙江省水文局 Real-time data synchronization method in distributed environment
CN104063446A (en) * 2014-06-17 2014-09-24 沈阳龙天科技有限公司 Multi-user-generated content version control method and implementation method

Similar Documents

Publication Publication Date Title
CN104301420B (en) A kind of distributed file sharing system that supporting multi-client and method
US20150186445A1 (en) Mechanism for deprecating object oriented data
CN102224492B (en) data maintenance system
CN106104596A (en) Display is for the cooperation icon of the state that cooperates
US8707187B2 (en) Concurrent document markup
US8484108B2 (en) Tracking entities during identity resolution
EP3864504B1 (en) Changeset conflict rebasing
CN104090776A (en) Software development method and system
JP2014010837A (en) Technology trend analysis report generation system and recording medium
CN107665255A (en) Method, apparatus, equipment and the storage medium of key value database data change
CN108156030A (en) The method and device that a kind of configuration strategy synchronizes
CN102779088B (en) Transaction facility, transaction methods and transaction processing program
US20120212321A1 (en) System and method for managing access to and tracking a plurality of carts
CN105512325B (en) Update, deletion and the method for building up and device of multi-edition data index
CN106959989A (en) The synchronous method and device in master/slave data storehouse
Lee et al. Implementation and performance of distributed text processing system using hadoop for e-discovery cloud service
CN104573075A (en) Management method and system for research and development of application codes
CN115480943A (en) Method and system for automatically checking and repairing data based on scheme configuration
CN104573078A (en) Server and data storage applying method and device therefor
CN108388610B (en) Data ETL processing method and device
US20070011678A1 (en) Methods and systems for managing shared tasks
CN108984415A (en) A kind of product use-case persistence maintenance system and management method
CN106326203B (en) A kind of document items edit methods based on language block
KR102214697B1 (en) A computer program for providing space managrment for data storage in a database management system
US20060129521A1 (en) System and method for restoring a file directory structure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant after: Nubian Technologies Ltd.

Address before: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant before: Shenzhen ZTE Mobile Tech Co., Ltd.

COR Change of bibliographic data
C10 Entry into 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: 20150429