CN116088771B - Multi-level storage method and system for worksheet data based on energy Internet - Google Patents

Multi-level storage method and system for worksheet data based on energy Internet Download PDF

Info

Publication number
CN116088771B
CN116088771B CN202310360805.6A CN202310360805A CN116088771B CN 116088771 B CN116088771 B CN 116088771B CN 202310360805 A CN202310360805 A CN 202310360805A CN 116088771 B CN116088771 B CN 116088771B
Authority
CN
China
Prior art keywords
work order
storage
identification code
data
order 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.)
Active
Application number
CN202310360805.6A
Other languages
Chinese (zh)
Other versions
CN116088771A (en
Inventor
裘炜浩
宋宛净
祝绍扬
陈云润
范人杰
唐圣锋
徐邱敏
郑静楠
高超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Zhejiang Electric Power Co Ltd
Marketing Service Center of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
State Grid Zhejiang Electric Power Co Ltd
Marketing Service Center of State Grid Zhejiang Electric Power 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 State Grid Zhejiang Electric Power Co Ltd, Marketing Service Center of State Grid Zhejiang Electric Power Co Ltd filed Critical State Grid Zhejiang Electric Power Co Ltd
Priority to CN202310360805.6A priority Critical patent/CN116088771B/en
Publication of CN116088771A publication Critical patent/CN116088771A/en
Application granted granted Critical
Publication of CN116088771B publication Critical patent/CN116088771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The invention discloses a method and a system for storing worksheet data at multiple levels based on energy Internet, wherein the method comprises the following steps: a designated part in each piece of work order data is set as a first identification code; when the requirement of recording the additional information exists, decomposing the additional information into a plurality of second identification codes; comparing the first identification code with the second identification code of the work order data in the temporary storage area, if the first identification code and the second identification code are the same, extracting the work order data, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording an address range; when the additional information needs to be read, the first identification codes of the storage subspaces are sequentially read according to the recorded address range, and the additional information is obtained through splicing. The invention records the additional information through the address and the sequence of the data, so that the invention does not occupy the additional storage space, and the processing capacity is utilized for redisplay during reading, thereby making up the problem of insufficient storage space.

Description

Multi-level storage method and system for worksheet data based on energy Internet
Technical Field
The invention relates to the field of data processing, in particular to a method and a system for storing worksheet data at multiple levels based on energy Internet.
Background
In the energy internet, worksheets are important information carriers, and due to the fact that the data storage demand is large and the data volume grows year by year, the storage space of each data center and each server is increasingly tense. The storage space is increased at the same time, the cost is extremely high, and the problem cannot be solved from the root.
In the prior art, as disclosed in publication number CN112835525a, the application relates to a method, a device and a terminal for improving the utilization rate of storage space, where the method for improving the utilization rate of storage space includes selecting an object to be processed whose storage time exceeds a preset time threshold; parameter adjustment is carried out on the object to be processed so as to reduce the storage space of the object to be processed; storing the object after parameter adjustment; and deleting the object to be processed. Under the condition that the data of the recently stored objects are not affected, the application carries out parameter adjustment on some stored objects with relatively long storage time, saves space, improves the utilization rate of the storage space and prolongs the storage period of the storage object resources.
But by deleting data or adjusting data, the information is still substantially reduced. Thus the space between the memory and the data volume remains locked.
Meanwhile, the computing power of the chip is synchronously increased, and in many times, the computing power idle rate of the chip is higher, and how to make up the deficiency of the storage space by improving the computing power utilization rate of the chip is an unsolvable problem in the prior art.
Disclosure of Invention
The invention provides a multi-level storage method and a multi-level storage system for worksheet data based on energy Internet, aiming at the problem that the prior art cannot compensate for the shortage of storage space through calculation, and compared with the traditional storage mode, the multi-level storage method and the multi-level storage system for worksheet data based on energy Internet can represent or record additional information through addresses and sequences of data under the condition that the storage space is unchanged, so that the additional information does not occupy the rest of storage space, but is repeatedly utilized in a multi-level mode, and the processing capacity can be utilized to redisplay the additional information during reading, thereby compensating for the shortage of the storage space.
The following is a technical scheme of the invention.
The multi-level storage method for the worksheet data based on the energy Internet comprises the following steps:
s1: dividing a storage space into a temporary storage area and a preservation area, and dividing the preservation area into a plurality of storage subspaces;
s2: splitting the content of the work orders of the energy Internet to obtain a plurality of work order data, wherein the appointed part of each work order data is set as a first identification code;
s3: storing the work order data into a temporary storage area;
s4: when the requirement of recording the additional information exists, decomposing the additional information into a plurality of second identification codes;
s5: comparing the first identification code with the second identification code of the work order data in the temporary storage area, if the first identification code and the second identification code are the same, extracting the work order data, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording an address range;
s6: when the additional information needs to be read, the first identification codes of the storage subspaces are sequentially read according to the recorded address range, and the additional information is obtained by splicing.
In the invention, the temporary storage area can be a buffer area in the traditional memory or can be an area which is divided independently in the storage space, namely, the temporary storage area is used up and deleted. After the content of the work order is split, the appointed part of each work order data is used as the first identification code, and different information can be represented by the combination of the first identification codes through different storage sequences. And by re-splicing the first identification codes during reading, the effect of replacing part of the storage capacity by part of the processing capacity is realized.
Preferably, in the step S1, the storage space is divided into a temporary storage area and a preservation area, and the preservation area is divided into a plurality of storage subspaces, including:
acquiring all storage addresses of a storage space, taking the tail end of the storage address as the starting point of a temporary storage area, taking the starting position of the storage address as the starting point of a storage area, setting a zone bit in a preset storage address, taking the area before the zone bit as the storage area and the area after the zone bit as the temporary storage area, wherein the zone bit is adjusted according to requirements;
the storage area is formed as a storage subspace in units of a specified number of storage addresses.
The head and tail are provided with the temporary storage area and the protection area, so that when the storage space allowance is more, the temporary storage area and the protection area are not influenced, and when the allowance is tense, the partition is convenient to adjust, and the mutual influence is reduced to the greatest extent.
Preferably, in the step S2, the content of the work order of the energy internet is split to obtain a plurality of work order data, and a designated part in each work order data is set as a first identification code, including:
converting the content of a work order of the energy Internet into structured data, and splitting the structured data into a plurality of work order data according to the same data size;
after each part of work order data is expressed in binary system, designating a plurality of initial bits as a first identification code;
the data volume of each work order data is smaller than or equal to the storage volume of one storage subspace.
Preferably, the first identification code is a binary number of one to four digits. When the number of bits of the first identification code is 1, the first identification code is easiest to splice, but the recycling efficiency of the storage space is lowest, but the number of bits is too large, and the problem that the wanted data is difficult to splice occurs, so that the number of one to four bits is a reasonable range.
Preferably, in the step S4, when there is a requirement for recording additional information, the additional information is decomposed into a plurality of second identification codes, including:
when additional information recording requirements exist, converting the additional information into the same data type as the first identification code;
and dividing the converted extra information by the length of the first identification code to obtain a plurality of second identification codes.
In the invention, the first identification code and the second identification code are identical in nature and are a series of digital codes, and the contents can be completely consistent or different.
Preferably, in the step S5, the first identification code and the second identification code of the worksheet data in the temporary storage area are compared, if the first identification code and the second identification code are the same, the worksheet data are extracted, the extracted worksheet data are sequentially transferred from the temporary storage area to the storage subspace of the storage area in the splicing order of the second identification code, and the address range is recorded, including:
sequentially extracting a plurality of second identification codes obtained by decomposing the additional information, and matching the second identification codes with the first identification codes of the work order data in the temporary storage area;
extracting work order data consistent in matching, and sequentially transferring the work order data from the temporary storage area to a storage subspace of the storage area;
the address range of the memory subspace written this time is recorded, and the address range is stored in the separate memory subspace.
In the invention, the process is a transfer process, and is also a process in which additional information is recorded, and after the transfer process is performed in sequence, the first identification code combination of the work order data in the area is the additional information.
Preferably, in the step S6, when the work order data needs to be read, searching the save area according to the keywords in the work order data, finding the corresponding storage subspace, and reading, including:
when the work order data need to be read, inputting the keywords of the known work order data, and searching in a storage area after the keywords are expressed in binary system;
and extracting the required work order data until the target is found.
Preferably, in the step S6, when additional information needs to be read, the first identification codes of the storage subspace are sequentially read according to the recorded address range, and the additional information is spliced, including:
when the additional information needs to be read, finding a corresponding storage subspace according to the recorded address range, sequentially reading the first identification codes of the storage subspaces, splicing the first identification codes in sequence, and reversely converting the converted additional information to obtain original additional information, wherein the obtained result is converted additional information.
Energy internet-based worksheet data multi-level storage system comprises:
the space management module is used for dividing the storage space into a temporary storage area and a preservation area and dividing the preservation area into a plurality of storage subspaces;
the work order processing module is used for splitting the content of the work order of the energy internet to obtain a plurality of work order data, and a designated part in each work order data is set as a first identification code;
the temporary storage writing-in module is used for storing the work order data into the temporary storage area;
the demand processing module is used for decomposing the extra information into a plurality of second identification codes when the extra information recording demand exists;
the data transfer module is used for comparing the first identification code with the second identification code of the work order data in the temporary storage area, extracting the work order data if the first identification code and the second identification code are the same, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording the address range;
and the data reading module is used for searching the storage area according to the keywords in the work order data when the work order data need to be read, finding the corresponding storage subspace and reading the storage subspace, and sequentially reading the first identification codes of the storage subspace according to the recorded address range when the additional information needs to be read, so as to obtain the additional information by splicing.
The essential effects of the invention include: by arranging the storage sequence of the work order data, the combination of the first identification codes can carry specific information, the storage mode does not change the volume of the data body or the storage space, and the recorded additional information can be obtained only by re-splicing by using calculation force during reading, so that the fact that part of bytes can be used for representing various meanings is realized, namely, the multi-level utilization and the repeated utilization of the storage space are realized. The data volume is not reduced, the storage space is not increased, and the stored information can be increased.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solution will be clearly and completely described in the following in conjunction with the embodiments, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that, in various embodiments of the present invention, the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present invention, "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present invention, "plurality" means two or more. "and/or" is merely an association relationship describing an association object, and means that three relationships may exist, for example, and/or B may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "comprising A, B and C", "comprising A, B, C" means that all three of A, B, C comprise, "comprising A, B or C" means that one of the three comprises A, B, C, and "comprising A, B and/or C" means that any 1 or any 2 or 3 of the three comprises A, B, C.
The technical scheme of the invention is described in detail below by specific examples. Embodiments may be combined with each other and the same or similar concepts or processes may not be described in detail in some embodiments.
Examples: the multi-level storage method of the worksheet data based on the energy Internet, as shown in fig. 1, comprises the following steps:
s1: dividing a storage space into a temporary storage area and a preservation area, and dividing the preservation area into a plurality of storage subspaces; comprising the following steps:
acquiring all storage addresses of a storage space, taking the tail end of the storage address as the starting point of a temporary storage area, taking the starting position of the storage address as the starting point of a storage area, setting a zone bit in a preset storage address, taking the area before the zone bit as the storage area and the area after the zone bit as the temporary storage area, wherein the zone bit is adjusted according to requirements;
the storage area is formed as a storage subspace in units of a specified number of storage addresses.
In the storage space, each storage address has a corresponding number, the smallest number is used as a starting position, and the largest number is used as an end.
The head and tail are provided with the temporary storage area and the protection area, so that when the storage space allowance is more, the temporary storage area and the protection area are not influenced, and when the allowance is tense, the partition is convenient to adjust, and the mutual influence is reduced to the greatest extent.
In the invention, the temporary storage area can be a buffer area in the traditional memory or can be an area which is divided independently in the storage space, namely, the temporary storage area is used up and deleted.
S2: splitting the content of the work orders of the energy Internet to obtain a plurality of work order data, wherein the appointed part of each work order data is set as a first identification code; comprising the following steps:
converting the content of a work order of the energy Internet into structured data, and splitting the structured data into a plurality of work order data according to the same data size;
after each part of work order data is expressed in binary system, designating a plurality of initial bits as a first identification code;
the data volume of each work order data is smaller than or equal to the storage volume of one storage subspace.
The first identification code of the present embodiment is a two-digit number, but may be set as a binary number of one to four digits as needed. When the number of bits of the first identification code is 1, the first identification code is easiest to splice, but the recycling efficiency of the storage space is lowest, but the number of bits is too large, and the problem that the wanted data is difficult to splice occurs, so that the number of one to four bits is a reasonable range.
For example, when a part of work order data is represented in binary, the first identifier is the first 01, and the first is 01110 and … ….
S3: and storing the work order data into a temporary storage area.
S4: when the requirement of recording the additional information exists, decomposing the additional information into a plurality of second identification codes; comprising the following steps:
when additional information recording requirements exist, converting the additional information into the same data type as the first identification code;
and dividing the converted extra information by the length of the first identification code to obtain a plurality of second identification codes.
In the invention, the first identification code and the second identification code are identical in nature and are a series of digital codes, and the contents can be completely consistent or different.
The conversion process of the additional information is based on a preset coding standard, and the conversion is performed by comparing the characters with binary numbers, for example, the GB2312 coding standard or the GBK coding standard, for example, the additional information is converted into binary numbers and then 1100 1010 1001, and then the additional information is divided according to the number of bits of the first identification code, namely, the additional information is divided by two digits, and 11, 00, 10 and 01 are obtained, so that 6 second identification codes with two digits are obtained.
S5: comparing the first identification code with the second identification code of the work order data in the temporary storage area, if the first identification code and the second identification code are the same, extracting the work order data, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording an address range; comprising the following steps:
sequentially extracting a plurality of second identification codes obtained by decomposing the additional information, and matching the second identification codes with the first identification codes of the work order data in the temporary storage area;
extracting work order data consistent in matching, and sequentially transferring the work order data from the temporary storage area to a storage subspace of the storage area;
the address range of the memory subspace written this time is recorded, and the address range is stored in the separate memory subspace.
In the invention, the process is a transfer process, and is also a process in which additional information is recorded, and after the transfer process is performed in sequence, the first identification code combination of the work order data in the area is the additional information.
For example, according to the second identification codes of 11, 00, 10 and 01, the first identification codes of the same number are found, and the work order data corresponding to the first identification codes are stored in sequence.
S6: when the additional information needs to be read, the first identification codes of the storage subspaces are sequentially read according to the recorded address range, and the additional information is obtained by splicing.
In S6, when the work order data needs to be read, searching the save area according to the keywords in the work order data, finding the corresponding storage subspace and reading, including:
when the work order data need to be read, inputting the keywords of the known work order data, and searching in a storage area after the keywords are expressed in binary system;
and extracting the required work order data until the target is found.
In S6, when additional information needs to be read, sequentially reading the first identification codes of the storage subspace according to the recorded address range, and splicing to obtain the additional information, including:
when the additional information needs to be read, finding a corresponding storage subspace according to the recorded address range, sequentially reading the first identification codes of the storage subspaces, splicing the first identification codes in sequence, and reversely converting the converted additional information to obtain original additional information, wherein the obtained result is converted additional information.
For example, reading the first identification code in the range to obtain 11, 00, 10 and 01, splicing the first identification code to 1100 1010 1001 to obtain converted additional information, and converting the binary system into characters by combining with the coding standard to restore the additional information.
In the above-mentioned process of the embodiment, besides that the worksheet data occupies the required storage space, the stored additional information does not occupy other storage resources, but is obtained by processing during reading. I.e. the storage capacity is replaced by a portion of the processing capacity.
In summary, after the content of the work order is split, the designated part of each work order data is used as the first identification code, and different information can be represented by the combination of the first identification codes through different storage sequences. And by re-splicing the first identification codes during reading, the effect of replacing part of the energy storage capacity by part of calculation force is realized.
In addition, this embodiment also provides a multi-level storage system for worksheet data based on energy internet, including:
the space management module is used for dividing the storage space into a temporary storage area and a preservation area and dividing the preservation area into a plurality of storage subspaces;
the work order processing module is used for splitting the content of the work order of the energy internet to obtain a plurality of work order data, and a designated part in each work order data is set as a first identification code;
the temporary storage writing-in module is used for storing the work order data into the temporary storage area;
the demand processing module is used for decomposing the extra information into a plurality of second identification codes when the extra information recording demand exists;
the data transfer module is used for comparing the first identification code with the second identification code of the work order data in the temporary storage area, extracting the work order data if the first identification code and the second identification code are the same, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording the address range;
and the data reading module is used for searching the storage area according to the keywords in the work order data when the work order data need to be read, finding the corresponding storage subspace and reading the storage subspace, and sequentially reading the first identification codes of the storage subspace according to the recorded address range when the additional information needs to be read, so as to obtain the additional information by splicing.
According to the method, the storage sequence of the work order data is arranged, the combination of the first identification codes can carry specific information, the storage mode does not change the volume of the data, the storage space is not changed, extra information recorded by the work order data can be obtained only by re-splicing by using calculation force during reading, and the fact that part bytes can be used for representing various meanings is achieved, namely multi-level utilization and repeated utilization of the storage space are achieved. The data volume is not reduced, the storage space is not increased, and the stored information can be increased.
From the foregoing description of the embodiments, it will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of a specific apparatus is divided into different functional modules to implement all or part of the functions described above.
In the embodiments provided in this application, it should be understood that the disclosed structures and methods may be implemented in other ways. For example, the embodiments described above with respect to structures are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another structure, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via interfaces, structures or units, which may be in electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. The multi-level storage method for the worksheet data based on the energy Internet is characterized by comprising the following steps of:
s1: dividing a storage space into a temporary storage area and a preservation area, and dividing the preservation area into a plurality of storage subspaces;
s2: splitting the content of the work orders of the energy Internet to obtain a plurality of work order data, wherein the appointed part of each work order data is set as a first identification code;
s3: storing the work order data into a temporary storage area;
s4: when the requirement of recording the additional information exists, decomposing the additional information into a plurality of second identification codes;
s5: comparing the first identification code with the second identification code of the work order data in the temporary storage area, if the first identification code and the second identification code are the same, extracting the work order data, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording an address range;
s6: when the additional information needs to be read, the first identification codes of the storage subspaces are sequentially read according to the recorded address range, and the additional information is obtained by splicing.
2. The multi-level storage method of worksheet data based on energy internet according to claim 1, wherein in S1, the storage space is divided into a temporary storage area and a storage area, and the storage area is divided into a plurality of storage subspaces, comprising:
acquiring all storage addresses of a storage space, taking the tail end of the storage address as the starting point of a temporary storage area, taking the starting position of the storage address as the starting point of a storage area, setting a zone bit in a preset storage address, taking the area before the zone bit as the storage area and the area after the zone bit as the temporary storage area, wherein the zone bit is adjusted according to requirements;
the storage area is formed as a storage subspace in units of a specified number of storage addresses.
3. The method for storing the work order data at different levels based on the energy internet according to claim 2, wherein in S2, the content of the work order of the energy internet is split to obtain a plurality of work order data, and a designated part of each work order data is set as a first identification code, which comprises:
converting the content of a work order of the energy Internet into structured data, and splitting the structured data into a plurality of work order data according to the same data size;
after each part of work order data is expressed in binary system, designating a plurality of initial bits as a first identification code;
the data volume of each work order data is smaller than or equal to the storage volume of one storage subspace.
4. The energy internet-based worksheet data multi-level storage method of claim 3, wherein the first identification code is a one to four-digit binary number.
5. The method for storing the work order data at different levels based on the energy internet according to claim 3 or 4, wherein in S4, when there is an additional information recording requirement, the additional information is decomposed into a plurality of second identification codes, including:
when additional information recording requirements exist, converting the additional information into the same data type as the first identification code;
and dividing the converted extra information by the length of the first identification code to obtain a plurality of second identification codes.
6. The method for storing worksheet data at multiple levels based on energy internet according to claim 5, wherein in S5, comparing the first identification code with the second identification code of worksheet data in the temporary storage area, if the first identification code is the same as the second identification code, extracting the worksheet data, sequentially transferring the extracted worksheet data from the temporary storage area to the storage subspace of the storage area in the splicing order of the second identification code, and recording the address range, including:
sequentially extracting a plurality of second identification codes obtained by decomposing the additional information, and matching the second identification codes with the first identification codes of the work order data in the temporary storage area;
extracting work order data consistent in matching, and sequentially transferring the work order data from the temporary storage area to a storage subspace of the storage area;
the address range of the memory subspace written this time is recorded, and the address range is stored in the separate memory subspace.
7. The multi-level storage method of worksheet data based on energy internet according to claim 6, wherein in S6, when the worksheet data needs to be read, searching the storage area according to the keywords in the worksheet data, finding the corresponding storage subspace and reading, and comprising:
when the work order data need to be read, inputting the keywords of the known work order data, and searching in a storage area after the keywords are expressed in binary system;
and extracting the required work order data until the target is found.
8. The energy internet-based worksheet data multi-level storage method according to claim 6, wherein in S6, when additional information needs to be read, sequentially reading the first identification codes of the storage subspaces according to the recorded address range, and splicing the first identification codes to obtain the additional information, wherein the method comprises the following steps:
when the additional information needs to be read, finding a corresponding storage subspace according to the recorded address range, sequentially reading the first identification codes of the storage subspaces, splicing the first identification codes in sequence, and reversely converting the converted additional information to obtain original additional information, wherein the obtained result is converted additional information.
9. Energy internet-based worksheet data multi-level storage system, which is characterized by comprising:
the space management module is used for dividing the storage space into a temporary storage area and a preservation area and dividing the preservation area into a plurality of storage subspaces;
the work order processing module is used for splitting the content of the work order of the energy internet to obtain a plurality of work order data, and a designated part in each work order data is set as a first identification code;
the temporary storage writing-in module is used for storing the work order data into the temporary storage area;
the demand processing module is used for decomposing the extra information into a plurality of second identification codes when the extra information recording demand exists;
the data transfer module is used for comparing the first identification code with the second identification code of the work order data in the temporary storage area, extracting the work order data if the first identification code and the second identification code are the same, sequentially transferring the extracted work order data from the temporary storage area to a storage subspace of the storage area according to the splicing sequence of the second identification code, and recording the address range;
and the data reading module is used for searching the storage area according to the keywords in the work order data when the work order data need to be read, finding the corresponding storage subspace and reading the storage subspace, and sequentially reading the first identification codes of the storage subspace according to the recorded address range when the additional information needs to be read, so as to obtain the additional information by splicing.
CN202310360805.6A 2023-04-06 2023-04-06 Multi-level storage method and system for worksheet data based on energy Internet Active CN116088771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310360805.6A CN116088771B (en) 2023-04-06 2023-04-06 Multi-level storage method and system for worksheet data based on energy Internet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310360805.6A CN116088771B (en) 2023-04-06 2023-04-06 Multi-level storage method and system for worksheet data based on energy Internet

Publications (2)

Publication Number Publication Date
CN116088771A CN116088771A (en) 2023-05-09
CN116088771B true CN116088771B (en) 2023-06-16

Family

ID=86199423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310360805.6A Active CN116088771B (en) 2023-04-06 2023-04-06 Multi-level storage method and system for worksheet data based on energy Internet

Country Status (1)

Country Link
CN (1) CN116088771B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225407A (en) * 2021-04-29 2021-08-06 全球能源互联网研究院有限公司 Equipment identification information management method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544269B (en) * 2013-10-17 2017-02-01 华为技术有限公司 Methods and node controllers for storing and enquiring directories
US10127289B2 (en) * 2015-08-19 2018-11-13 Palantir Technologies Inc. Systems and methods for automatic clustering and canonical designation of related data in various data structures
CN105260404B (en) * 2015-09-22 2019-03-26 北京百度网讯科技有限公司 The method and apparatus of storage time sequence data
CN111414362B (en) * 2020-02-28 2023-11-10 平安科技(深圳)有限公司 Data reading method, device, equipment and storage medium
CN112817538B (en) * 2021-02-22 2022-08-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN114579570A (en) * 2022-03-01 2022-06-03 珠海金山数字网络科技有限公司 Data processing method and device
CN115576998B (en) * 2022-12-09 2023-02-17 国网浙江省电力有限公司金华供电公司 Power distribution network data integration method and system based on multi-dimensional information fusion

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225407A (en) * 2021-04-29 2021-08-06 全球能源互联网研究院有限公司 Equipment identification information management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116088771A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN110413611B (en) Data storage and query method and device
US20170249345A1 (en) A biomolecule based data storage system
US8244693B2 (en) Method and device for compressing table based on finite automata, method and device for matching table
CN105912696A (en) DNS (Domain Name System) index creating method and query method based on logarithm merging
CN116088771B (en) Multi-level storage method and system for worksheet data based on energy Internet
CN106940708A (en) A kind of method and system that the positioning of IP scopes is realized based on binary chop
CN112131202B (en) Distributed file storage and reading method, terminal device and storage medium
CN116756253B (en) Data storage and query methods, devices, equipment and media of relational database
CN106909623B (en) A kind of data set and date storage method for supporting efficient mass data to analyze and retrieve
CN107943981A (en) HBase rows paging method, server and computer-readable recording medium
CN112434085A (en) Roaring Bitmap-based user data statistical method
CN113434511B (en) Clustering index method based on Hilbert curve
CN114721582A (en) Information sharing method and device and related equipment
CN111258955B (en) File reading method and system, storage medium and computer equipment
JP4850581B2 (en) Data processing system
JP3129248B2 (en) Character string search method using two-dimensional array code
US6732121B1 (en) Method for reducing required memory capacity and creation of a database
US20240088913A1 (en) Graph data compression method and apparatus
CN116610679B (en) json data analysis method, json data analysis device, computer equipment and computer medium
CN111914513A (en) RDP window title character recognition method and device
CN116821146B (en) Apache Iceberg-based data list updating method and system
CN114443670B (en) Data storage and reading method and device
CN117193674B (en) Method and device for improving mass data access efficiency of Internet of things equipment
CN112380004B (en) Memory management method, memory management device, computer readable storage medium and electronic equipment
US20060187735A1 (en) Indexation by transposition of matrix of large dimension

Legal Events

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