CN113656366B - Data processing method and device for electronic warehouse - Google Patents

Data processing method and device for electronic warehouse Download PDF

Info

Publication number
CN113656366B
CN113656366B CN202110887210.7A CN202110887210A CN113656366B CN 113656366 B CN113656366 B CN 113656366B CN 202110887210 A CN202110887210 A CN 202110887210A CN 113656366 B CN113656366 B CN 113656366B
Authority
CN
China
Prior art keywords
data
electronic warehouse
synchronized
warehouse
local
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
CN202110887210.7A
Other languages
Chinese (zh)
Other versions
CN113656366A (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN202110887210.7A priority Critical patent/CN113656366B/en
Publication of CN113656366A publication Critical patent/CN113656366A/en
Application granted granted Critical
Publication of CN113656366B publication Critical patent/CN113656366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method and device of an electronic warehouse. Wherein the method comprises the following steps: detecting whether the current moment is in a synchronous time period, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency; if the current moment is in the synchronous time period, acquiring configuration information of at least one heterogeneous electronic warehouse; determining data to be synchronized to a local electronic warehouse according to configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse; and synchronizing the data to be synchronized to a local electronic warehouse. The invention solves the technical problem that the file access efficiency is still lower when enterprises deploy a plurality of electronic warehouses in the related technology.

Description

Data processing method and device for electronic warehouse
Technical Field
The invention relates to the field of electronic warehouses, in particular to a data processing method and device of an electronic warehouse.
Background
In PDM systems, structured data and documents need to be stored simultaneously. Structured data is stored in a database, and physical files are typically stored and managed by a specialized electronic warehouse to provide uploading and downloading services for the documents.
In general, a PDM system is deployed, and a database is deployed to be matched with an electronic warehouse, so that management of the database and physical files can be realized. When the documents are put in storage, the documents are uploaded to an electronic warehouse, and when the documents need to be accessed, such as going out of the warehouse or browsing, the documents are acquired from the electronic warehouse. This deployment generally meets the needs of an enterprise that does not require a remote office.
When enterprises have branch institutions in different areas, the electronic warehouse is arranged at a headquarter, and the document warehousing efficiency of each branch structure can be reduced due to network delay. At the moment, the electronic warehouse is deployed in each branch office, so that documents of the branch offices are directly put into the electronic warehouse of the branch office, and the put-in efficiency of the branch structure can be greatly improved; similarly, the efficiency of a branch structure accessing files in its electronic warehouse is also exceeded by the efficiency of accessing files in the headquarter electronic warehouse.
However, the enterprise is a whole, so that the efficiency of uploading files by the branch office and accessing files in the electronic warehouse is low when different branch structures need to access files in the electronic warehouse of each other and when the branch office and the branch office need to access files in the electronic warehouse of each other.
Aiming at the technical problem that the file access efficiency is still low when enterprises deploy a plurality of electronic warehouses in the related art, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method and a data processing device of an electronic warehouse, which at least solve the technical problem that the file access efficiency is still lower when enterprises deploy a plurality of electronic warehouses in the related technology,
According to an aspect of an embodiment of the present invention, there is provided a data processing method of an electronic warehouse, including: detecting whether the current moment is in a synchronous time period, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency; if the current moment is in the synchronous time period, acquiring configuration information of at least one heterogeneous electronic warehouse; determining data to be synchronized to a local electronic warehouse according to configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse; and synchronizing the data to be synchronized to a local electronic warehouse.
Optionally, determining the data to be synchronized to the local electronic warehouse according to the configuration information of the at least one heterogeneous electronic warehouse includes: determining a target electronic warehouse needing to synchronize data to the local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse; and determining data to be synchronized, which need to be synchronized to a local electronic warehouse, in the target electronic warehouse according to the configuration information of the target electronic warehouse.
Optionally, determining, according to the configuration information of the at least one heterogeneous electronic warehouse, a target electronic warehouse to which data needs to be synchronized, including: determining a foreign electronic repository allowing data to be synchronized to the local electronic repository according to configuration information of the at least one foreign electronic repository; and determining the target electronic warehouse which needs to synchronize the data to the local electronic warehouse in the abnormal electronic warehouse which allows the data to be synchronized to the local electronic warehouse according to the configuration information corresponding to the abnormal electronic warehouse which allows the data to be synchronized to the local electronic warehouse.
Optionally, determining, according to the configuration information of the target electronic warehouse, data to be synchronized in the target electronic warehouse, which needs to be synchronized to a local electronic warehouse, includes: according to the configuration information of the target electronic warehouse, determining an updating time range of data to be synchronized, which needs to be synchronized to a local electronic warehouse, in the target electronic warehouse; and acquiring data with the creation time and/or the modification time in the target electronic warehouse within the updating time range, and determining the data as data to be synchronized of the target electronic warehouse.
Optionally, synchronizing the data to be synchronized to a local electronic warehouse includes: determining an operation time period for executing synchronous operation of the data to be synchronized according to the configuration information of the target electronic warehouse, wherein the operation time period is positioned in the synchronous time period; and synchronizing the data to be synchronized into the local electronic warehouse in the operation time period.
Optionally, synchronizing the data to be synchronized to a local electronic warehouse includes: acquiring a storage path and a storage name of the data to be synchronized in a local electronic warehouse; judging whether the data to be synchronized is synchronized into the local electronic warehouse or not based on a storage path and a storage name of the data to be synchronized in the local electronic warehouse; if the data to be synchronized is already synchronized to the local electronic warehouse, ending the synchronization flow of the data to be synchronized; and if the data to be synchronized is not synchronized into the local electronic warehouse, synchronizing the data to be synchronized into the local electronic warehouse.
Optionally, the data processing method further includes: receiving an access request, and determining data to be accessed based on the access request; determining whether the warehousing object of the data to be accessed is the local electronic warehouse or the abnormal electronic warehouse; if the data to be accessed is stored in the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse so as to respond to the access request; if the data to be accessed are stored in the abnormal electronic warehouse, judging whether the data to be accessed are synchronized from the abnormal electronic warehouse to the local electronic warehouse; if the data to be accessed is synchronized from the abnormal electronic warehouse to the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse to respond to the access request; and if the data to be accessed is not synchronized to the local electronic warehouse from the abnormal electronic warehouse, acquiring the data to be accessed from the abnormal electronic warehouse to respond to the access request.
According to another aspect of the embodiment of the present invention, there is also provided a data processing apparatus of an electronic warehouse, including: the detection unit is used for detecting whether the current moment is in a synchronous time period, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency; the acquisition unit is used for acquiring configuration information of at least one abnormal electronic warehouse if the current moment is in the synchronous time period; the determining unit is used for determining data to be synchronized to the local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse; and the synchronization unit is used for synchronizing the data to be synchronized to a local electronic warehouse.
According to another aspect of the present application, there is provided a storage medium including a stored program, wherein the program performs the data processing method of the electronic warehouse described in any one of the above.
According to another aspect of the present application, there is provided a processor for running a program, wherein the program, when run, performs the data processing method of the electronic warehouse as described in any one of the above.
In the embodiment of the invention, whether the current moment is in a synchronous time period is detected, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency; if the current moment is in the synchronous time period, acquiring configuration information of at least one heterogeneous electronic warehouse; determining data to be synchronized to a local electronic warehouse according to configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse; and synchronizing the data to be synchronized to a local electronic warehouse. The technical problem that file access efficiency is still low when enterprises deploy a plurality of electronic warehouses in the related technology is solved.
In other words, the invention is a technical scheme that files in other electronic warehouses are synchronized into a local electronic warehouse in the time when the network is idle, and when the files in a non-local electronic warehouse need to be accessed, the files are accessed from the local. The technical problem that when enterprises deploy a plurality of electronic warehouses, the file access efficiency is low is solved; the technical effect of high-efficiency file access is achieved under the condition that normal operation of a local electronic warehouse is not affected.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an alternative method of processing data in an electronic warehouse in accordance with an embodiment of the present invention;
FIG. 2 is a second flowchart of an alternative method of data processing for an electronic warehouse, in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart III of an alternative method of data processing for an electronic warehouse in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart four of an alternative method of data processing for an electronic warehouse in accordance with an embodiment of the present invention;
Fig. 5 is a schematic view of a data processing device of an alternative electronic warehouse according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which 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 present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a 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 expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided an embodiment of a data processing method of an electronic warehouse, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
Fig. 1 is a data processing method of an electronic warehouse according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
Step S102, detecting whether the current moment is in a synchronous time period, wherein the synchronous time period is a time period in which the local electronic warehouse is lower than a preset use frequency.
Step S104, if the current moment is in the synchronous time period, the configuration information of at least one abnormal electronic warehouse is obtained.
And step S106, determining data to be synchronized to a local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse.
Step S108, synchronizing the data to be synchronized to a local electronic warehouse.
In the embodiment of the invention, whether the current moment is in a synchronous time period is detected, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency; if the current moment is in the synchronous time period, acquiring configuration information of at least one heterogeneous electronic warehouse; determining data to be synchronized to a local electronic warehouse according to configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse; and synchronizing the data to be synchronized to a local electronic warehouse. The technical problem that file access efficiency is still low when enterprises deploy a plurality of electronic warehouses in the related technology is solved.
That is, as shown in fig. 2, the present invention detects whether the synchronization period is currently in the first place; in the case of no, waiting for a synchronization period; and under the condition of yes, acquiring the electronic warehouse needing to be synchronized, acquiring the data needing to be synchronized of the electronic warehouse, and finally synchronizing the data needing to be synchronized to the local. In other words, the invention is a technical scheme that files in other electronic warehouses are synchronized into a local electronic warehouse in the time when the network is idle, and when the files in a non-local electronic warehouse need to be accessed, the files are accessed from the local. The technical problem that when enterprises deploy a plurality of electronic warehouses, the file access efficiency is low is solved; the technical effect of high-efficiency file access is achieved under the condition that normal operation of a local electronic warehouse is not affected.
In addition, compared with the technical scheme that a special line with high bandwidth is directly adopted between a branch office and a headquarter, the technical scheme solves the problem of document access efficiency by making the bandwidth enough (the high bandwidth cost of stable different places is higher); the application has the technical effect of lower broadband cost.
In addition, compared with the technical scheme of deploying professional synchronization software among branches needing synchronization to synchronize document data in an electronic warehouse by adopting the synchronization software (the synchronization software has higher cost and can have compatibility problems with the electronic warehouse, and in a busy stage, the synchronization software can compete with other business software for broadband resources); the application has the technical effects of lower cost, no competition for broadband and better compatibility with the electronic warehouse.
It should be noted that: the invention adopts the PDM to access the electronic warehouse to process the data synchronously.
Optionally, determining the data to be synchronized to the local electronic warehouse according to the configuration information of the at least one heterogeneous electronic warehouse includes: determining a target electronic warehouse needing to synchronize data to the local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse; and determining data to be synchronized, which need to be synchronized to a local electronic warehouse, in the target electronic warehouse according to the configuration information of the target electronic warehouse.
The determining, according to the configuration information of the at least one heterogeneous electronic warehouse, a target electronic warehouse that needs to synchronize data to the local electronic warehouse may be implemented by adopting the following technical steps: determining a foreign electronic repository allowing data to be synchronized to the local electronic repository according to configuration information of the at least one foreign electronic repository; and determining the target electronic warehouse which needs to synchronize the data to the local electronic warehouse in the abnormal electronic warehouse which allows the data to be synchronized to the local electronic warehouse according to the configuration information corresponding to the abnormal electronic warehouse which allows the data to be synchronized to the local electronic warehouse.
Illustrating: the final target electronic warehouse may be determined by first determining table 1 below and then table 2 below.
TABLE 1 synchronization relationship between electronic warehouses
Electronic warehouse \electronic warehouse A B C
A Allow for Allow for
B Disallowing Allow for
C Allow for Disallowing
TABLE 2 synchronization relationship between electronic warehouses
Electronic warehouse allowing synchronization Whether or not synchronization is required
A Synchronization
B Synchronization
C Synchronization
...
According to the configuration information of the target electronic warehouse, determining the data to be synchronized, which needs to be synchronized to the local electronic warehouse, in the target electronic warehouse can be realized by adopting the following technical steps: according to the configuration information of the target electronic warehouse, determining an updating time range of data to be synchronized, which needs to be synchronized to a local electronic warehouse, in the target electronic warehouse; and acquiring data with the creation time and/or the modification time in the target electronic warehouse within the updating time range, and determining the data as data to be synchronized of the target electronic warehouse.
That is, as shown in fig. 3, a time range of the automatic synchronization data of the target electronic warehouse configuration is acquired; according to the creation time (CreationDate) and the modification time (LastmodifyDate) of each data in the document data table in the target electronic warehouse, the change data conforming to the synchronous time range is acquired, and the data to be synchronized is determined by the change data. Illustrating: the data of the latest 1 day in the electronic warehouse is synchronously processed; and B, carrying out synchronous processing on the data of the last 1 week in the electronic warehouse.
Optionally, synchronizing the data to be synchronized to a local electronic warehouse includes: determining an operation time period for executing synchronous operation of the data to be synchronized according to the configuration information of the target electronic warehouse, wherein the operation time period is positioned in the synchronous time period; and synchronizing the data to be synchronized into the local electronic warehouse in the operation time period.
Illustrating: the method comprises the steps that A, data to be synchronized in an electronic warehouse are synchronized between 8 points in each night and 8 points in the morning; and B, synchronizing the data to be synchronized in the electronic warehouse between 8 pm every week and 8 am every week.
Optionally, the data to be synchronized is synchronized to a local electronic warehouse, so as to be realized by the following steps: acquiring a storage path and a storage name of the data to be synchronized in a local electronic warehouse; judging whether the data to be synchronized is synchronized into the local electronic warehouse or not based on a storage path and a storage name of the data to be synchronized in the local electronic warehouse; if the data to be synchronized is already synchronized to the local electronic warehouse, ending the synchronization flow of the data to be synchronized; and if the data to be synchronized is not synchronized into the local electronic warehouse, synchronizing the data to be synchronized into the local electronic warehouse.
That is, as shown in fig. 4, whether the data to be synchronized has been synchronized into the local electronic warehouse is judged according to the storage path (Dir) and the storage Name (file_name) of the data to be synchronized in the local electronic warehouse; if it is already synchronized, ignore; how not already synchronized, the unsynchronized data to be synchronized is synchronized to the local electronic repository.
Optionally, the document data structure of the data to be synchronized includes at least one of: path, representing the storage Path of the data to be synchronized in a local electronic warehouse; file_name represents the storage name of the data to be synchronized in a local electronic warehouse; name, which represents the original file Name of the data to be synchronized; creationDate, representing the creation time of the data to be synchronized; lastmodifyDate, representing the modification time of the data to be synchronized; CRC, which represents the cyclic redundancy check value of the data to be synchronized.
That is, the document data structure of the data to be synchronized is shown in table 3 below.
TABLE 3 document data Structure of data to be synchronized
Fields Meaning of
Path Storage path in an electronic warehouse
File_name Store name in form Guid in electronic warehouse
name Original file name
CreationDate Creation time
LastmodifyDate Modification time
CRC CRC value of file
…… ……
Optionally, the data processing method further includes: receiving an access request, and determining data to be accessed based on the access request; determining whether the warehousing object of the data to be accessed is the local electronic warehouse or the abnormal electronic warehouse; if the data to be accessed is stored in the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse so as to respond to the access request; if the data to be accessed are stored in the abnormal electronic warehouse, judging whether the data to be accessed are synchronized from the abnormal electronic warehouse to the local electronic warehouse; if the data to be accessed is synchronized from the abnormal electronic warehouse to the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse to respond to the access request; and if the data to be accessed is not synchronized to the local electronic warehouse from the abnormal electronic warehouse, acquiring the data to be accessed from the abnormal electronic warehouse to respond to the access request.
That is, if the document is put in the local electronic warehouse, it is acquired from the local electronic warehouse; if the documents are stored in the heterogeneous electronic warehouse and synchronized to the local, acquiring the documents from the local electronic warehouse; if the document is put in the heterogeneous electronic warehouse and is not synchronized to the local place, the document is acquired from the heterogeneous electronic warehouse.
In summary, the method for accessing the electronic warehouse in the PDM is used for synchronizing the data of the electronic warehouse, so that the data processing method of the electronic warehouse provided by the invention has no compatibility problem. In addition, the invention can reduce the synchronous data quantity and avoid unnecessary workload by setting the variable data within the range of how long to automatically synchronize. And finally, the invention can synchronize in idle time as much as possible by setting the synchronization time period and matching with the change data in the automatic synchronization time range, thereby reducing the preemption of the synchronization data to the network bandwidth.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a data processing device of the electronic warehouse, and the data processing device of the electronic warehouse can be used for executing the data processing method for the electronic warehouse. The data processing device of the electronic warehouse provided by the embodiment of the application is described below.
Fig. 5 is a schematic view of a data processing device of an electronic warehouse according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: a detection unit 10, an acquisition unit 20, a determination unit 30 and a synchronization unit 40.
A detection unit 10, configured to detect whether a current time is in a synchronization period, where the synchronization period is a period in which a local electronic warehouse is lower than a preset use frequency;
An obtaining unit 20, configured to obtain configuration information of at least one heterogeneous electronic warehouse if the current time is in the synchronization time period;
A determining unit 30, configured to determine data to be synchronized to a local electronic warehouse according to configuration information of the at least one heterogeneous electronic warehouse, where the data to be synchronized is data stored in the at least one heterogeneous electronic warehouse;
and the synchronization unit 40 is used for synchronizing the data to be synchronized to the local electronic warehouse.
The data processing device of the electronic warehouse provided by the embodiment of the application is used for detecting whether the current moment is in a synchronous time period or not through the detection unit 10, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency; an obtaining unit 20, configured to obtain configuration information of at least one heterogeneous electronic warehouse if the current time is in the synchronization time period; a determining unit 30, configured to determine data to be synchronized to a local electronic warehouse according to configuration information of the at least one heterogeneous electronic warehouse, where the data to be synchronized is data stored in the at least one heterogeneous electronic warehouse; and the synchronization unit 40 is used for synchronizing the data to be synchronized to the local electronic warehouse. The technical problem that when enterprises deploy a plurality of electronic warehouses, the file access efficiency is low is solved; the technical effect of high-efficiency file access is achieved under the condition that normal operation of a local electronic warehouse is not affected.
The data processing device of the electronic warehouse comprises a processor and a memory, wherein the detection unit 10, the acquisition unit 20, the determination unit 30, the synchronization unit 40 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the technical problem of low file access efficiency when enterprises deploy a plurality of electronic warehouses is solved by adjusting kernel parameters; the technical effect of realizing efficient file access under the condition that normal operation of a local electronic warehouse is not affected is achieved.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a storage medium having a program stored thereon, which when executed by a processor, implements a data processing method of the electronic warehouse.
The embodiment of the invention provides a processor which is used for running a program, wherein the program runs to execute a data processing method of an electronic warehouse.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, 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 through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. 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 invention 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 computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (7)

1. A data processing method of an electronic warehouse, the data processing method comprising:
detecting whether the current moment is in a synchronous time period, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency;
if the current moment is in the synchronous time period, acquiring configuration information of at least one heterogeneous electronic warehouse;
Determining data to be synchronized to a local electronic warehouse according to configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse;
Synchronizing the data to be synchronized to a local electronic warehouse;
wherein determining data to be synchronized to a local electronic warehouse according to configuration information of the at least one heterogeneous electronic warehouse comprises: determining a target electronic warehouse needing to synchronize data to the local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse; determining data to be synchronized, which need to be synchronized to a local electronic warehouse, in the target electronic warehouse according to the configuration information of the target electronic warehouse;
According to the configuration information of the target electronic warehouse, determining data to be synchronized, which needs to be synchronized to a local electronic warehouse, in the target electronic warehouse comprises the following steps: according to the configuration information of the target electronic warehouse, determining an updating time range of data to be synchronized, which needs to be synchronized to a local electronic warehouse, in the target electronic warehouse; acquiring data with the creation time and/or modification time in the target electronic warehouse within the update time range, and determining the data as data to be synchronized of the target electronic warehouse; the document data structure of the data to be synchronized comprises the following information: a storage path, a storage name, an original file name, a creation time, a modification time, and a cyclic redundancy check value;
Wherein, the data processing method further comprises:
receiving an access request, and determining data to be accessed based on the access request;
Determining whether the warehousing object of the data to be accessed is the local electronic warehouse or the abnormal electronic warehouse;
If the data to be accessed is stored in the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse so as to respond to the access request;
If the data to be accessed are stored in the abnormal electronic warehouse, judging whether the data to be accessed are synchronized from the abnormal electronic warehouse to the local electronic warehouse;
If the data to be accessed is synchronized from the abnormal electronic warehouse to the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse to respond to the access request;
and if the data to be accessed is not synchronized to the local electronic warehouse from the abnormal electronic warehouse, acquiring the data to be accessed from the abnormal electronic warehouse to respond to the access request.
2. The data processing method according to claim 1, wherein determining a target electronic warehouse to which data is to be synchronized to the local electronic warehouse based on configuration information of the at least one heterogeneous electronic warehouse comprises:
determining a foreign electronic repository allowing data to be synchronized to the local electronic repository according to configuration information of the at least one foreign electronic repository;
and determining the target electronic warehouse which needs to synchronize the data to the local electronic warehouse in the abnormal electronic warehouse which allows the data to be synchronized to the local electronic warehouse according to the configuration information corresponding to the abnormal electronic warehouse which allows the data to be synchronized to the local electronic warehouse.
3. The data processing method of claim 1, wherein synchronizing the data to be synchronized to a local electronic repository comprises:
determining an operation time period for executing synchronous operation of the data to be synchronized according to the configuration information of the target electronic warehouse, wherein the operation time period is positioned in the synchronous time period;
And synchronizing the data to be synchronized into the local electronic warehouse in the operation time period.
4. The data processing method of claim 1, wherein synchronizing the data to be synchronized to a local electronic repository comprises:
acquiring a storage path and a storage name of the data to be synchronized in a local electronic warehouse;
Judging whether the data to be synchronized is synchronized into the local electronic warehouse or not based on a storage path and a storage name of the data to be synchronized in the local electronic warehouse;
if the data to be synchronized is already synchronized to the local electronic warehouse, ending the synchronization flow of the data to be synchronized;
and if the data to be synchronized is not synchronized into the local electronic warehouse, synchronizing the data to be synchronized into the local electronic warehouse.
5. A data processing device for an electronic warehouse, the data processing device comprising:
The detection unit is used for detecting whether the current moment is in a synchronous time period, wherein the synchronous time period is a time period of which the local electronic warehouse is lower than a preset use frequency;
The acquisition unit is used for acquiring configuration information of at least one abnormal electronic warehouse if the current moment is in the synchronous time period;
The determining unit is used for determining data to be synchronized to the local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse, wherein the data to be synchronized is data stored in the at least one abnormal electronic warehouse;
The synchronization unit is used for synchronizing the data to be synchronized to a local electronic warehouse;
The device is also used for determining a target electronic warehouse needing to synchronize data to the local electronic warehouse according to the configuration information of the at least one abnormal electronic warehouse; determining data to be synchronized, which need to be synchronized to a local electronic warehouse, in the target electronic warehouse according to the configuration information of the target electronic warehouse;
The device is also used for determining the updating time range of the data to be synchronized, which needs to be synchronized to the local electronic warehouse, in the target electronic warehouse according to the configuration information of the target electronic warehouse; acquiring data with the creation time and/or modification time in the target electronic warehouse within the update time range, and determining the data as data to be synchronized of the target electronic warehouse; the document data structure of the data to be synchronized comprises the following information: a storage path, a storage name, an original file name, a creation time, a modification time, and a cyclic redundancy check value;
The data processing device is further used for receiving an access request and determining data to be accessed based on the access request; determining whether the warehousing object of the data to be accessed is the local electronic warehouse or the abnormal electronic warehouse; if the data to be accessed is stored in the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse so as to respond to the access request; if the data to be accessed are stored in the abnormal electronic warehouse, judging whether the data to be accessed are synchronized from the abnormal electronic warehouse to the local electronic warehouse; if the data to be accessed is synchronized from the abnormal electronic warehouse to the local electronic warehouse, acquiring the data to be accessed from the local electronic warehouse to respond to the access request; and if the data to be accessed is not synchronized to the local electronic warehouse from the abnormal electronic warehouse, acquiring the data to be accessed from the abnormal electronic warehouse to respond to the access request.
6. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the data processing method of the electronic warehouse of any one of claims 1 to 4.
7. A processor for running a program, wherein the program runs to perform the data processing method of the electronic warehouse of any one of claims 1 to 4.
CN202110887210.7A 2021-08-03 2021-08-03 Data processing method and device for electronic warehouse Active CN113656366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110887210.7A CN113656366B (en) 2021-08-03 2021-08-03 Data processing method and device for electronic warehouse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110887210.7A CN113656366B (en) 2021-08-03 2021-08-03 Data processing method and device for electronic warehouse

Publications (2)

Publication Number Publication Date
CN113656366A CN113656366A (en) 2021-11-16
CN113656366B true CN113656366B (en) 2024-05-03

Family

ID=78490320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110887210.7A Active CN113656366B (en) 2021-08-03 2021-08-03 Data processing method and device for electronic warehouse

Country Status (1)

Country Link
CN (1) CN113656366B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374668A (en) * 2021-12-30 2022-04-19 北京北信源软件股份有限公司 Information processing method, information processing device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067483A (en) * 2012-12-25 2013-04-24 广东邮电职业技术学院 Remote data increment synchronization method and device based on data package
CN103106118A (en) * 2011-08-17 2013-05-15 宏达国际电子股份有限公司 Data synchronization management methods and systems
CN103139224A (en) * 2011-11-22 2013-06-05 腾讯科技(深圳)有限公司 Network file system and method for accessing network file system
CN103455599A (en) * 2013-09-03 2013-12-18 北京网秦天下科技有限公司 Method, equipment and system for data synchronism
CN106980625A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of method of data synchronization, apparatus and system
CN107707645A (en) * 2017-09-27 2018-02-16 北京机电工程研究所 Telefile sychronisation and method for PDM
CN108038163A (en) * 2017-12-06 2018-05-15 交控科技股份有限公司 Standby control center database synchronous system
CN110096272A (en) * 2019-03-19 2019-08-06 深圳壹账通智能科技有限公司 Library file processing method, device, computer equipment and storage medium
CN112199447A (en) * 2020-12-03 2021-01-08 深圳市易博天下科技有限公司 Database synchronization method, device and system and electronic equipment
CN112597244A (en) * 2020-12-23 2021-04-02 浙江中控技术股份有限公司 Data synchronization method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050216524A1 (en) * 2004-03-23 2005-09-29 Integrated Data Corporation Smart and selective synchronization between databases in a document management system
US20090132534A1 (en) * 2007-11-21 2009-05-21 Inventec Corporation Remote replication synchronizing/accessing system and method thereof
US9747297B2 (en) * 2014-09-23 2017-08-29 Amazon Technologies, Inc. Synchronization of shared folders and files

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106118A (en) * 2011-08-17 2013-05-15 宏达国际电子股份有限公司 Data synchronization management methods and systems
CN103139224A (en) * 2011-11-22 2013-06-05 腾讯科技(深圳)有限公司 Network file system and method for accessing network file system
CN103067483A (en) * 2012-12-25 2013-04-24 广东邮电职业技术学院 Remote data increment synchronization method and device based on data package
CN103455599A (en) * 2013-09-03 2013-12-18 北京网秦天下科技有限公司 Method, equipment and system for data synchronism
CN106980625A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of method of data synchronization, apparatus and system
CN107707645A (en) * 2017-09-27 2018-02-16 北京机电工程研究所 Telefile sychronisation and method for PDM
CN108038163A (en) * 2017-12-06 2018-05-15 交控科技股份有限公司 Standby control center database synchronous system
CN110096272A (en) * 2019-03-19 2019-08-06 深圳壹账通智能科技有限公司 Library file processing method, device, computer equipment and storage medium
CN112199447A (en) * 2020-12-03 2021-01-08 深圳市易博天下科技有限公司 Database synchronization method, device and system and electronic equipment
CN112597244A (en) * 2020-12-23 2021-04-02 浙江中控技术股份有限公司 Data synchronization method and device and electronic equipment

Also Published As

Publication number Publication date
CN113656366A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN104199666B (en) A kind of application program Dynamic Configuration and device
CN107797767B (en) One kind is based on container technique deployment distributed memory system and its storage method
CN103580908B (en) The collocation method of server and system
CN105740418A (en) File monitoring and message pushing based real-time synchronization system
CN113111129B (en) Data synchronization method, device, equipment and storage medium
CN104809201A (en) Database synchronization method and device
CN112434061B (en) Task scheduling method and system supporting cyclic dependence
CN112506870B (en) Data warehouse increment updating method and device and computer equipment
CN113656366B (en) Data processing method and device for electronic warehouse
CN108874924A (en) Creation method, device and the computer readable storage medium of search service
CN104809200A (en) Database synchronization method and device
CN110502545B (en) Data storage method, device, equipment and computer readable storage medium
CN112162817A (en) Processing method and device for deploying service resources of container cluster and storage medium
US11169863B2 (en) Dynamic management method for menu, server and system
CN112598448A (en) Dynamic material data processing method, system, computer and readable storage medium
CN115576599A (en) Configuration method and system for software development and computer equipment
US20040054987A1 (en) System and method of an incremental file audit in a computer system
CN110704422A (en) Data query method, device, system, computer equipment and storage medium
CN102932476A (en) Network storage synchronization system
CN104915376A (en) Cloud storage file archiving and compressing method
CN110532457B (en) Method and system for acquiring network segment ID
CN110096285B (en) Deployment method and device of software system, computer equipment and storage medium
CN113032385A (en) Easily-extensible configurable data backup system and method
CN109902067A (en) Document handling method, device, storage medium and computer equipment
US20240143315A1 (en) Efficient configuration management in continuous deployment

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