CN101556595A - Method for fast positioning relevant documents in document system - Google Patents

Method for fast positioning relevant documents in document system Download PDF

Info

Publication number
CN101556595A
CN101556595A CNA2008101038640A CN200810103864A CN101556595A CN 101556595 A CN101556595 A CN 101556595A CN A2008101038640 A CNA2008101038640 A CN A2008101038640A CN 200810103864 A CN200810103864 A CN 200810103864A CN 101556595 A CN101556595 A CN 101556595A
Authority
CN
China
Prior art keywords
resource
file
source
path
serial number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008101038640A
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.)
Beijing Wenyan Technology Co Ltd
Original Assignee
Beijing Wenyan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wenyan Technology Co Ltd filed Critical Beijing Wenyan Technology Co Ltd
Priority to CNA2008101038640A priority Critical patent/CN101556595A/en
Publication of CN101556595A publication Critical patent/CN101556595A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

A method for fast positioning relevant documents in a document system comprises the steps: firstly, writing basic data into a database by an inventory program; distributing a source ID number to a source by the database; determining a source storing directory according to the source ID; obtaining the path of the source ID according to the mode when reading the source; sequentially adding underlines and sequence numbers behind the path to read the source, and sequentially increasing the sequence number until no document can be read so as to read all of the sources; and finally resetting the sequence numbers of the sources when deleting part of the sources. The invention ensures that when providing sources to a client terminal, a server terminal can fast position the source in the document system according to the ID of the source.

Description

The way of associated with in a kind of quick locating file system
Technical field
The present invention relates to the way of associated with in a kind of quick locating file system, particularly a kind of employing a kind of at server end when client provides resource, can come the way of locating resource in file system fast according to the ID of resource.
Background technology
If we are stored in common data resource in the database, relative file resource is stored in the file system, can utilize the characteristics of file system, provide resource for client expeditiously.When storage resources, need to use database for it distributes a resource ID, according to this ID its file resource is stored in the file system.When reading resource, the present invention will read the resource of appointment easily according to resource ID from file system.
Summary of the invention
Technical matters to be solved by this invention provide a kind of employing adopt a kind of at server end when client provides resource, can be fast according to the way of ID locating resource in file system of resource.
The way of associated with in a kind of quick locating file of the present invention system, this method comprises following step at least:
Step 1: go into library basic data is write in the database.
Step 2: database is this resources allocation resource ID numeral.
Step 3: determine the resource storing directory according to resource ID.
Step 4: when reading resource, earlier resource ID is obtained its path by above-mentioned form.
Step 5: add that in the back, path underscore+serial number reads resource successively, serial number increases successively, and directly reading does not have till the file, has so just read all resources.
Step 6: when deletion a part of in the resource, its serial number need be reset.
The way of associated with is determined the resource storing directory according to resource ID in a kind of quick locating file of the present invention system, the steps include:
Step 31: this resource ID is converted to character string forms.
Step 32: and be that unit intercepts with two successively, as the sub-folder and the path of deep layer file more thereof.
Step 33: the title of last a part of character string as resource file.
Step 34: if same resource ID corresponding to a plurality of resources, will add underscore+serial number in the back; Can guarantee not have in each sub-folder too many file and file like this, to guarantee its reading efficiency.
The way of associated with makes server end when client provides resource in a kind of quick locating file system that the present invention relates to, and can be fast comes locating resource in file system according to the ID of resource.
Description of drawings
Fig. 1 is resource Stored Procedure figure of the present invention.
Fig. 2 reads process flow diagram for resource of the present invention:
Embodiment
Referring to Fig. 1 and Fig. 2, key step of the present invention is as follows:
Step 1: go into library basic data is write in the database.
Step 2: database is this resources allocation resource ID numeral.
Step 3: determine the resource storing directory according to resource ID.
Step 4: when reading resource, earlier resource ID is obtained its path by above-mentioned form.
Step 5: add that in the back, path underscore+serial number reads resource successively, serial number increases successively, and directly reading does not have till the file, has so just read all resources.
Step 6: when deletion a part of in the resource, its serial number need be reset.
Above-mentioned steps 3 determines that according to resource ID the concrete steps of resource storing directory are as follows:
Step 31: this resource ID is converted to character string forms.
Step 32: and be that unit intercepts with two successively, as the sub-folder and the path of deep layer file more thereof.
Step 33: the title of last a part of character string as resource file.
Step 34: if same resource ID corresponding to a plurality of resources, will add underscore+serial number in the back; Can guarantee not have in each sub-folder too many file and file like this, to guarantee its reading efficiency.
Above-mentioned technical scheme makes server end when client provides resource when implementing, can be fast according to ID locating resource in file system of resource.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this instructions has been described in detail the present invention with reference to the above embodiments,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (2)

1, the way of associated with in a kind of quick locating file system, it is characterized in that: this method comprises following step at least:
Step 1: go into library basic data is write in the database.
Step 2: database is this resources allocation resource ID numeral.
Step 3: determine the resource storing directory according to resource ID.
Step 4: when reading resource, earlier resource ID is obtained its path by above-mentioned form.
Step 5: add that in the back, path underscore+serial number reads resource successively, serial number increases successively, and directly reading does not have till the file, has so just read all resources.
Step 6: when deletion a part of in the resource, its serial number need be reset.
2, the way of associated with in a kind of quick locating file according to claim 1 system is characterized in that determining the resource storing directory according to resource ID, the steps include:
Step 31: this resource ID is converted to character string forms.
Step 32: and be that unit intercepts with two successively, as the sub-folder and the path of deep layer file more thereof.
Step 33: the title of last a part of character string as resource file.
Step 34: if same resource ID corresponding to a plurality of resources, will add underscore+serial number in the back; Can guarantee not have in each sub-folder too many file and file like this, to guarantee its reading efficiency.
CNA2008101038640A 2008-04-11 2008-04-11 Method for fast positioning relevant documents in document system Pending CN101556595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101038640A CN101556595A (en) 2008-04-11 2008-04-11 Method for fast positioning relevant documents in document system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101038640A CN101556595A (en) 2008-04-11 2008-04-11 Method for fast positioning relevant documents in document system

Publications (1)

Publication Number Publication Date
CN101556595A true CN101556595A (en) 2009-10-14

Family

ID=41174712

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101038640A Pending CN101556595A (en) 2008-04-11 2008-04-11 Method for fast positioning relevant documents in document system

Country Status (1)

Country Link
CN (1) CN101556595A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411509A (en) * 2010-09-25 2012-04-11 金蝶软件(中国)有限公司 Analyzing method, system and terminal for introducing third-party packet into software system
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program
CN109491967A (en) * 2018-11-02 2019-03-19 科大国创软件股份有限公司 A kind of distributed file management method and system based on UUID
CN110321459A (en) * 2019-06-06 2019-10-11 武汉闻道复兴智能科技有限责任公司 The methods of exhibiting and device of a kind of method that building directory tree, directory tree

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411509A (en) * 2010-09-25 2012-04-11 金蝶软件(中国)有限公司 Analyzing method, system and terminal for introducing third-party packet into software system
CN102411509B (en) * 2010-09-25 2013-10-23 金蝶软件(中国)有限公司 Analyzing method, system and terminal for introducing third-party packet into software system
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program
CN109491967A (en) * 2018-11-02 2019-03-19 科大国创软件股份有限公司 A kind of distributed file management method and system based on UUID
CN110321459A (en) * 2019-06-06 2019-10-11 武汉闻道复兴智能科技有限责任公司 The methods of exhibiting and device of a kind of method that building directory tree, directory tree

Similar Documents

Publication Publication Date Title
CN102779180B (en) The operation processing method of data-storage system, data-storage system
CN102169507B (en) Implementation method of distributed real-time search engine
CN109857724B (en) Method and equipment for supporting various databases based on block chain
US10248556B2 (en) Forward-only paged data storage management where virtual cursor moves in only one direction from header of a session to data field of the session
CN105718455A (en) Data query method and apparatus
CN106874348B (en) File storage and index method and device and file reading method
CN110147204B (en) Metadata disk-dropping method, device and system and computer-readable storage medium
CN103902632A (en) File system building method and device in key-value storage system, and electronic device
JP2007012058A (en) File system for storing transaction records in flash-like media
CN105100051A (en) Method and system for realizing data resource access right control
CN102402602A (en) B+ tree indexing method and device of real-time database
CN102725755A (en) Method and system of file access
CN105550306A (en) Multi-copy data reading/writing method and system
CN111339042B (en) Data operation processing method, system and scheduling server
CN106649602B (en) Business object data processing method, device and server
CN105447166A (en) Keyword based information search method and system
US20190213240A1 (en) Multimodal sharing of content between documents
US8578359B2 (en) Method and apparatus for reliable in-place update
CN109460406B (en) Data processing method and device
US8352442B2 (en) Determination of an updated data source from disparate data sources
CN105512017A (en) Database compatibility detection method and device
CN102523301A (en) Method for caching data on client in cloud storage
CN111444192A (en) Method, device and equipment for generating Hash of global state in block chain type account book
CN101556595A (en) Method for fast positioning relevant documents in document system
CN103713926A (en) Method and system for updating software of client in advance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091014