WO2018165962A1 - E-commerce data migration system and method - Google Patents
E-commerce data migration system and method Download PDFInfo
- Publication number
- WO2018165962A1 WO2018165962A1 PCT/CN2017/077009 CN2017077009W WO2018165962A1 WO 2018165962 A1 WO2018165962 A1 WO 2018165962A1 CN 2017077009 W CN2017077009 W CN 2017077009W WO 2018165962 A1 WO2018165962 A1 WO 2018165962A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- database server
- database
- terminal
- cluster
- data migration
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
Definitions
- the present invention relates to the field of information technology, and in particular, to an e-commerce data migration system and method.
- the main object of the present invention is to provide an e-commerce data migration system and method, which aims to solve the technical problem of data migration based on an inconvenable terminal in an existing e-commerce system.
- the present invention provides an e-commerce data migration system, which is operated in a data migration device, and the data migration device is communicably connected to a first database server and a second database server through a network, the network
- the upper communication connection has multiple terminals, and the system includes:
- a receiving module configured to receive a data migration configuration file of the first database server
- an obtaining module configured to acquire, from the data migration configuration file, a size of the e-commerce data to be migrated in the first database server;
- a search module configured to search for a corresponding number of terminals in the network according to the size of the e-commerce data to be migrated;
- a collection module configured to group all the searched terminals into one cluster
- a sending module configured to send the data migration configuration file to each terminal in the cluster, so that each terminal in the cluster establishes a communication connection between the first database server and the second database server;
- a notification module configured to notify the first database server to send the e-commerce data to be migrated to the second database server by using the searched terminal;
- the notification module is further configured to notify the terminal in the idle state that the terminal in the cluster is in an idle state, and actively acquires the e-commerce data to be migrated in the first database server and occurs to the second. Database server.
- the present invention further provides an e-commerce data migration method, which is applied to a data migration device, wherein the data migration device is communicably connected to the first database server and the second database server through a network.
- the network is connected to a plurality of terminals, and the method includes the following steps:
- the present invention uses multiple terminals to perform data migration on the e-commerce data, utilizes the network bandwidth used by the terminal, saves the bandwidth cost of the e-commerce, and can dynamically view the status of the terminal during the data migration process, and maximize the utilization.
- the terminal performs data migration.
- FIG. 1 is a schematic diagram of an application environment of an e-commerce data migration system of the present invention
- FIG. 2 is a block diagram showing a preferred embodiment of an e-commerce data migration system of the present invention
- FIG. 3 is a flow chart of a preferred embodiment of the e-commerce data migration method of the present invention.
- FIG. 1 is a schematic diagram of an application environment of an e-commerce data migration system according to the present invention.
- the e-commerce data migration system 30 in the present invention operates on the data migration device 3.
- the data migration device 3 is communicatively coupled to the first database server 1 and the second database server 4 via the network 2.
- the data migration device 3 can access the first database server 1 (or the second database server 4) through the network 2, and acquire various types of electricity from the first database server 1 (or the second database server 4) Business data.
- the e-commerce data data includes (e.g., user name, product text information, merchandise type information, courier information, warehousing information, merchandise pictures, shopping records, etc.).
- the first database server 1 is installed with a first database 10, wherein the database 10 is divided into a plurality of first partition databases 100, for example, N first partition databases 100, and each first partition database 10 0 A unique partition code is assigned, and a first partition database 100 stores one type of e-commerce data.
- the first partition database A stores text data in the e-commerce data
- the first partition database B stores image data in the e-commerce data
- the first partition database C stores video data in the e-commerce data
- the first partition stores web page data in the e-commerce data.
- the first database server 1 provides a data import interface (for example, an application program interface, an API), and a device or system that accesses the data import interface can be from the first database server 1
- the first partition database 100 acquires e-commerce data.
- the second database server 4 is installed with a second database 40, wherein the database 40 is divided into a plurality of second partition databases 400, for example, N second partition databases 400, and each second partition database 40 0 A unique partition code is assigned, and a second partition database 400 stores one type of e-commerce data.
- the second partition database A1 stores text data in the e-commerce data
- the second partition database B1 stores image data in the e-commerce data
- the second partition database C1 stores video data in the e-commerce data
- the second The partition database D1 stores web page data in the e-commerce data.
- the second database server 4 provides a data import interface (for example, an application interface
- the device or system accessing the data import interface can obtain the e-commerce data from the second database server 4.
- the second database server 4 is an alternate service of the first database server 1.
- the e-commerce data in the first database server 1 can be migrated to the second database server 4 for backup.
- the network 2 may be a wired communication network or a wireless communication network.
- the network is preferably a wireless communication network, including but not limited to, a GSM network, a GPRS network, a CDMA network, a TD-S CDMA network, a WiMAM network, a TD-LTE network, an FDD-LTE network, and the like. .
- the data migration device 3 is communicatively connected to the plurality of terminals 5 through the network 2, and is configured to migrate the e-commerce data in the first database server 1 to the second database server 4 through the terminal 5. Make a backup.
- the network 2 may be a wired communication network or a wireless communication network.
- the network is preferably a wireless communication network, including but not limited to, a GSM network, a GPRS network, a CDMA network, a TD-S CDMA network, a WiMAM network, a TD-LTE network, an FDD-LTE network, and the like.
- the data migration device 3 may be, but is not limited to, a smartphone, a tablet, a personal digital assistant.
- the terminal 5 may be, but not limited to, any other suitable portable touch screen electronic device such as a smart phone, a tablet computer, a personal digital assistant (PDA), a personal computer, an electronic signboard, and the like.
- a smart phone such as a smart phone, a tablet computer, a personal digital assistant (PDA), a personal computer, an electronic signboard, and the like.
- PDA personal digital assistant
- FIG. 2 it is a block diagram of a preferred embodiment of the e-commerce data migration system of the present invention.
- the e-commerce data migration system 30 is applied to the data migration device 3.
- the data migration device 3 includes, but is not limited to, an e-commerce data migration system 30, a storage unit 31, a processing unit 32, and a communication unit 33.
- the storage unit 31 may be a read only storage unit ROM, an electrically erasable storage unit EEPRO
- flash memory unit FLASH or solid hard disk FLASH or solid hard disk.
- the processing unit 32 may be a central processing unit (CPU), a microcontroller (MCU), a data processing chip, or an information processing unit having a data processing function.
- CPU central processing unit
- MCU microcontroller
- data processing chip or an information processing unit having a data processing function.
- the communication unit 33 is a communication interface with a remote communication function, for example, supporting GSM, GPR.
- the e-commerce data migration system 30 includes, but is not limited to, a receiving module 311, an obtaining module 312, a searching module 313, a collecting module 314 , a sending module 315, a notification module 316, and a determining module 317, which are claimed in the present invention.
- the module refers to a series of computer program instruction segments that can be executed by the processing unit 32 of the data migration device 3 and that are capable of performing a fixed function, which are stored in the storage unit 31 of the data migration device 3.
- the receiving module 311 is configured to receive a data migration configuration file of the first database server 1.
- the data migration configuration file includes, but is not limited to, an IP address of the first database server 1, a partition code of each first partition data 100 in the first database server 1, and a first database server. Attribute information (including data size, file directory, and the like) of the e-commerce data to be migrated in 1 , a database configuration file (for example, database connection configuration information, etc.) of the first database server 1 , and the second database server 4 The IP address, the partition code of each second partition data 400 in the second database server 4, the database configuration file of the second database server 4 (for example, database connection configuration information, etc.).
- the data migration configuration file may be pre-stored in the data migration device 3, and the data migration configuration file is periodically updated.
- the obtaining module 312 is configured to obtain, from the data migration configuration file, a size of the e-commerce data to be migrated in the first database server.
- the search module 313 is configured to search the network 2 for a corresponding number of terminals 5 according to the size of the e-commerce data to be migrated.
- the unit data size (for example, 2GB), M is the number of terminals, and a is a positive integer constant.
- the search module 312 sends a network broadcast to the network 2, and if the terminal 5 connected to the network 2 receives the network broadcast and agrees to be an intermediate device for data migration, the terminal 5 is a searched terminal.
- the terminal 5 pops up a query dialog box, which includes a confirmation button and a cancel button.
- the terminal 5 clicks the OK button, the terminal 5 is authorized to be the first.
- the intermediate device that the database server 1 migrates data if the user using the terminal 5 clicks the cancel button, indicates that the terminal 5 rejects the intermediate device that migrates data for the first database server 1.
- the reward information may be embedded in the network broadcast. For example, if the terminal 5 agrees to be an intermediate device for migrating data, an electronic money (for example, 1 yuan of electronic money) may be sent to The terminal 5.
- the user's terminal can also be used as an intermediate device for migrating data.
- the e-commerce data of the first database server 1 is migrated, and the setting is made after 12 o'clock in the evening to 4 o'clock in the morning.
- the aggregation module 314 is configured to aggregate all the searched terminals 5 into a cluster. Specifically, the manner in which the aggregation module 314 aggregates all the searched terminals 5 into one cluster is as follows: (1) assigning an encoding to each of the searched terminals 5; (2) acquiring the IP of each searched terminal 5. Address: (3) Create a cluster configuration file and send it to each searched terminal 5 to complete the creation of the cluster.
- the cluster configuration file includes the IP address and code of each searched terminal 5. It should be noted that the two search terminals 5 in the cluster can communicate with each other (according to the IP address and encoding) and exchange data. When one terminal 5 in the cluster cannot directly transmit data to the second database server 4, The terminal 5 can transmit data to the second database server 4 via another terminal 5 in the cluster.
- the sending module 315 is configured to send the data migration configuration file to each terminal 5 in the cluster, so that each terminal 5 in the cluster establishes communication between the first database server 1 and the second database server 4. connection.
- the terminal 5 in the cluster After receiving the data migration configuration file, the terminal 5 in the cluster communicates with the first database server 1 according to the IP address of the first database server 1, and accesses according to the database configuration file of the first database server 1.
- the first partition database 100 is communicably connected to the second database server 4 according to the IP address of the second database server 4, and accesses the second partition database 400 according to the database configuration file of the second database server 4.
- the notification module 316 is configured to notify the first database server 1 to send the e-commerce data to be migrated to the second database server 4 through the searched terminal 5. Specifically, the notification module 316 notifies the first database server 1 to transfer the text data in the first partition database 100 from the searched terminal 5 to the second partition database A1 for storage.
- the determining module 317 is configured to determine whether any of the terminals 5 in the cluster are in an idle state. Specifically, the determining module 317 detects each terminal 5 in the cluster, and determines whether the terminal 5 is transmitting e-commerce data (for example, by acquiring a related thread running in the terminal in the cluster), if the cluster has If the terminal 5 does not transmit the e-commerce data, the terminal 5 is in an idle state.
- the notification module 316 is further configured to notify the terminal 5 in the idle state that the terminal 5 in the cluster is in an idle state to actively acquire the e-commerce data to be migrated in the first database server 1 concurrently. Born to the second database server 4.
- FIG. 3 it is a flow chart of a preferred embodiment of the e-commerce data migration method of the present invention.
- the e-commerce data migration method is applied to the data migration device 3, and the method includes the following steps:
- Step S11 The receiving module 311 receives the data migration configuration file of the first database server 1.
- the data migration configuration file includes, but is not limited to, an IP address of the first database server 1, a partition code of each first partition data 100 in the first database server 1, and a first database server. Attribute information (including data size, file directory, and the like) of the e-commerce data to be migrated in 1 , a database configuration file (for example, database connection configuration information, etc.) of the first database server 1 , and the second database server 4 The IP address, the partition code of each second partition data 400 in the second database server 4, the database configuration file of the second database server 4 (for example, database connection configuration information, etc.).
- the data migration configuration file may be pre-stored in the data migration device 3, and the data migration configuration file is periodically updated.
- Step S12 The obtaining module 312 obtains, from the data migration configuration file, the size of the e-commerce data to be migrated in the first database server.
- Step S13 The search module 313 searches the network 2 for the terminal 5 according to the size of the e-commerce data to be migrated.
- the unit data size (for example, 1GB)
- M is the number of terminals
- a is a positive integer constant.
- the search module 312 sends a network broadcast to the network 2, and if the terminal 5 connected to the network 2 receives the network broadcast and agrees to be an intermediate device for data migration, the terminal 5 is a searched terminal.
- the terminal 5 pops up a query dialog box, which includes a confirmation button and a cancel button.
- the terminal 5 clicks the OK button, the terminal 5 is authorized to be the first.
- the intermediate device that the database server 1 migrates data if the user using the terminal 5 clicks the cancel button, indicates that the terminal 5 rejects the intermediate device that migrates data for the first database server 1.
- the reward information may be embedded in the network broadcast. For example, if the terminal 5 agrees to be an intermediate device for migrating data, an electronic money (for example, 1 yuan of electronic money) may be sent to the terminal. Terminal 5.
- the user's terminal can also be used as an intermediate device for migrating data.
- the e-commerce data of the first database server 1 is migrated, and is set at 12 in the evening. After the point, it will be between 4 am.
- Step S14 The aggregation module 314 aggregates all the searched terminals 5 into a cluster. Specifically, the manner in which the aggregation module 314 aggregates all the searched terminals 5 into one cluster is as follows: (1) assigning an encoding to each of the searched terminals 5; (2) acquiring the IP of each searched terminal 5. Address: (3) Create a cluster configuration file and send it to each searched terminal 5 to complete the creation of the cluster.
- the cluster configuration file includes the IP address and code of each searched terminal 5. It should be noted that the two search terminals 5 in the cluster can communicate with each other (according to the IP address and encoding) and exchange data. When one terminal 5 in the cluster cannot directly transmit data to the second database server 4, The terminal 5 can transmit data to the second database server 4 via another terminal 5 in the cluster.
- Step S15 The sending module 314 sends the data migration configuration file to each terminal 5 in the cluster, so that each terminal 5 in the cluster is established between the first database server 1 and the second database server 4. Communication connection. After receiving the data migration configuration file, the terminal 5 in the cluster communicates with the first database server 1 according to the IP address of the first database server 1, and accesses according to the database configuration file of the first database server 1.
- the first partition database 100 is communicably connected to the second database server 4 according to the IP address of the second database server 4, and accesses the second partition database 400 according to the database configuration file of the second database server 4.
- Step S16 The notification module 316 notifies the first database server 1 to send the e-commerce data to be migrated to the second database server 4 through the searched terminal 5. Specifically, the notification module 316 notifies the first database server 1 to transfer the text data in the first partition database 100 from the searched terminal 5 to the second partition database A1 for storage.
- Step S17 The determining module 317 determines whether any of the terminals 5 in the cluster are in an idle state. Specifically, the determining module 317 detects each terminal 5 in the cluster, and determines whether the terminal 5 is transmitting e-commerce data (for example, by acquiring a related thread running in the terminal in the cluster), if the cluster has If the terminal 5 does not transmit the e-commerce data, the terminal 5 is in an idle state. If all the terminals 5 in the cluster are idle, the flow proceeds to step S18. Otherwise, if no terminal 5 is idle in the cluster, repeat step S17.
- Step S18 The notification module 316 notifies the terminal 5 in the idle state that the e-commerce data to be migrated in the first database server 1 is actively acquired and occurs to the second database server 4.
- the invention adopts multiple terminals to perform data migration on the e-commerce data, utilizes the network bandwidth used by the terminal, saves the bandwidth cost of the e-commerce, and can dynamically view the state of the terminal during the data migration process, and utilize the terminal to perform data maximally. migrate.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
电商数据迁移系统及方法 技术领域 E-commerce data migration system and method
[0001] 本发明涉及信息化领域, 尤其涉及一种电商数据迁移系统及方法。 [0001] The present invention relates to the field of information technology, and in particular, to an e-commerce data migration system and method.
背景技术 Background technique
[0002] 随着电子商务的快速发展, 人们越来越习惯于使用电子商务网站来购买商品。 [0002] With the rapid development of electronic commerce, people are increasingly accustomed to using e-commerce websites to purchase goods.
然而, 卖家在通过网络渠道赚取利润的同吋, 却无法通过现有的互联网信息来 进行预测以后的热销商品, 来达到赚取更多利润的目的。 However, sellers who are making profits through online channels cannot use the existing Internet information to predict the hot products afterwards, in order to achieve more profit.
[0003] 进一步地, 随着移动电商的发展, 现在越来越多的消费者都使用终端 (例如, 手机、 平板电脑等触摸屏的终端) 査看上网购物。 为了确保电商系统 (或网站 ) 的稳定, 电商系统 (或网站) 需要定期对电商数据进行迁移以进行备份防止 出现数据崩溃的情况。 然而, 现有的电商数据数据迁移吋, 若数据量庞大会大 大增加宽带费用。 [0003] Further, with the development of mobile e-commerce, more and more consumers are now using terminals (for example, terminals of touch screens such as mobile phones and tablet computers) to view online shopping. To ensure the stability of the e-commerce system (or website), the e-commerce system (or website) needs to periodically migrate e-commerce data for backup to prevent data corruption. However, after the migration of existing e-commerce data, if the amount of data is large, the broadband cost will be greatly increased.
技术问题 technical problem
[0004] 本发明的主要目的在于提供一种电商数据迁移系统及方法, 旨在解决基于现有 的电商系统中无法调用终端进行数据迁移的技术问题。 [0004] The main object of the present invention is to provide an e-commerce data migration system and method, which aims to solve the technical problem of data migration based on an inconvenable terminal in an existing e-commerce system.
问题的解决方案 Problem solution
技术解决方案 Technical solution
[0005] 为实现上述目的, 本发明提供了一种电商数据迁移系统, 运行于数据迁移设备 中, 所述数据迁移设备通过网络与第一数据库服务器及第二数据库服务器通信 连接, 所述网络上通信连接有多个终端, 该系统包括: [0005] In order to achieve the above object, the present invention provides an e-commerce data migration system, which is operated in a data migration device, and the data migration device is communicably connected to a first database server and a second database server through a network, the network The upper communication connection has multiple terminals, and the system includes:
[0006] 接收模块, 用于接收所述第一数据库服务器的数据迁移配置文件; [0006] a receiving module, configured to receive a data migration configuration file of the first database server;
[0007] 获取模块, 用于从所述数据迁移配置文件中获取所述第一数据库服务器中待迁 移的电商数据数据的大小; [0007] an obtaining module, configured to acquire, from the data migration configuration file, a size of the e-commerce data to be migrated in the first database server;
[0008] 搜索模块, 用于根据所述待迁移的电商数据数据的大小在网络中搜索对应数量 的终端; [0008] a search module, configured to search for a corresponding number of terminals in the network according to the size of the e-commerce data to be migrated;
[0009] 集合模块, 用于将所有搜索的终端集合成一个集群; [0010] 发送模块, 用于发送所述数据迁移配置文件给集群中每一个终端, 使得所述集 群中每一个终端在第一数据库服务器及第二数据库服务器之间建立通信连接;[0009] a collection module, configured to group all the searched terminals into one cluster; [0010] a sending module, configured to send the data migration configuration file to each terminal in the cluster, so that each terminal in the cluster establishes a communication connection between the first database server and the second database server;
[0011] 通知模块, 用于通知所述第一数据库服务器将所述待迁移的电商数据数据通过 所述搜索的终端发送至第二数据库服务器; 及 [0011] a notification module, configured to notify the first database server to send the e-commerce data to be migrated to the second database server by using the searched terminal; and
[0012] 所述通知模块, 还用于当集群中有终端处于闲置状态吋, 通知集群中处于闲置 状态的终端主动获取所述第一数据库服务器中待迁移的电商数据数据并发生至 第二数据库服务器。 [0012] The notification module is further configured to notify the terminal in the idle state that the terminal in the cluster is in an idle state, and actively acquires the e-commerce data to be migrated in the first database server and occurs to the second. Database server.
[0013] 另一发明, 本发明还提供一种电商数据迁移方法, 应用于数据迁移设备中, 其 特征在于, 所述数据迁移设备通过网络与第一数据库服务器及第二数据库服务 器通信连接, 所述网络上通信连接有多个终端, 该方法包括如下步骤: [0013] Another invention, the present invention further provides an e-commerce data migration method, which is applied to a data migration device, wherein the data migration device is communicably connected to the first database server and the second database server through a network. The network is connected to a plurality of terminals, and the method includes the following steps:
[0014] 接收所述第一数据库服务器的数据迁移配置文件; [0014] receiving a data migration configuration file of the first database server;
[0015] 从所述数据迁移配置文件中获取所述第一数据库服务器中待迁移的电商数据数 据的大小; [0015] obtaining, from the data migration configuration file, a size of the e-commerce data to be migrated in the first database server;
[0016] 根据所述待迁移的电商数据数据的大小在网络中搜索对应数量的终端; [0016] searching for a corresponding number of terminals in the network according to the size of the e-commerce data to be migrated;
[0017] 发送所述数据迁移配置文件给每一个搜索的终端, 使得所述每一个搜索的终端 在第一数据库服务器及第二数据库服务器之间建立通信连接; 及 [0017] transmitting the data migration configuration file to each of the searched terminals, so that each of the searched terminals establishes a communication connection between the first database server and the second database server;
[0018] 通知所述第一数据库服务器将所述待迁移的电商数据数据通过所述搜索的终端 发送至第二数据库服务器。 [0018] notifying the first database server to send the e-commerce data to be migrated to the second database server through the searched terminal.
发明的有益效果 Advantageous effects of the invention
有益效果 Beneficial effect
[0019] 本发明采用多个终端对电商数据进行数据迁移, 利用终端所用的网络带宽, 节 省电商的带宽费用, 且数据迁移过程中, 能够动态地査看终端的状态, 最大限 度地利用终端进行数据迁移。 [0019] The present invention uses multiple terminals to perform data migration on the e-commerce data, utilizes the network bandwidth used by the terminal, saves the bandwidth cost of the e-commerce, and can dynamically view the status of the terminal during the data migration process, and maximize the utilization. The terminal performs data migration.
对附图的简要说明 Brief description of the drawing
附图说明 DRAWINGS
[0020] 图 1是本发明电商数据迁移系统的应用环境示意图; 1 is a schematic diagram of an application environment of an e-commerce data migration system of the present invention;
[0021] 图 2是本发明电商数据迁移系统的优选实施例的模块示意图; 2 is a block diagram showing a preferred embodiment of an e-commerce data migration system of the present invention;
[0022] 图 3是本发明电商数据迁移方法的优选实施例的流程图。 实施该发明的最佳实施例 3 is a flow chart of a preferred embodiment of the e-commerce data migration method of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION
本发明的最佳实施方式 BEST MODE FOR CARRYING OUT THE INVENTION
[0023] 参照图 1所示, 图 1是本发明电商数据迁移系统的应用环境示意图。 本发明中的 电商数据迁移系统 30运行于数据迁移设备 3上。 所述数据迁移设备 3通过网络 2与 第一数据库服务器 1及第二数据库服务器 4通信连接。 所述数据迁移设备 3可以通 过网络 2访问所述第一数据库服务器 1 (或第二数据库服务器 4) , 并从所述第一 数据库服务器 1 (或第二数据库服务器 4) 获取各种类型的电商数据数据。 所述 电商数据数据包括, (例如, 用户名、 商品文字信息、 商品种类信息、 快递信 息、 仓储信息、 商品图片、 购物记录等等) 。 Referring to FIG. 1, FIG. 1 is a schematic diagram of an application environment of an e-commerce data migration system according to the present invention. The e-commerce data migration system 30 in the present invention operates on the data migration device 3. The data migration device 3 is communicatively coupled to the first database server 1 and the second database server 4 via the network 2. The data migration device 3 can access the first database server 1 (or the second database server 4) through the network 2, and acquire various types of electricity from the first database server 1 (or the second database server 4) Business data. The e-commerce data data includes (e.g., user name, product text information, merchandise type information, courier information, warehousing information, merchandise pictures, shopping records, etc.).
[0024] 所述第一数据库服务器 1安装有第一数据库 10, 其中, 所述数据库 10划分为多 个第一分区数据库 100, 例如 N个第一分区数据库 100, 每一个第一分区数据库 10 0分配有一个唯一的分区代码, 一个第一分区数据库 100存储一种类型的电商数 据数据。 例如, 第一分区数据库 A存储电商数据数据中的文本数据, 第一分区数 据库 B存储电商数据数据中的图像数据, 第一分区数据库 C存储电商数据数据中 的视频数据、 第一分区数据库 D存储电商数据数据中的网页数据。 [0024] The first database server 1 is installed with a first database 10, wherein the database 10 is divided into a plurality of first partition databases 100, for example, N first partition databases 100, and each first partition database 10 0 A unique partition code is assigned, and a first partition database 100 stores one type of e-commerce data. For example, the first partition database A stores text data in the e-commerce data, the first partition database B stores image data in the e-commerce data, and the first partition database C stores video data in the e-commerce data, the first partition. The database D stores web page data in the e-commerce data.
[0025] 所述第一数据库服务器 1提供数据导入接口 (例如, 应用程序接口, Application Program Interface, API) , 接入该数据导入接口的设备或系统都可以从所述第一 数据库服务器 1中的第一分区数据库 100获取电商数据数据。 [0025] The first database server 1 provides a data import interface (for example, an application program interface, an API), and a device or system that accesses the data import interface can be from the first database server 1 The first partition database 100 acquires e-commerce data.
[0026] 所述第二数据库服务器 4安装有第二数据库 40, 其中, 所述数据库 40划分为多 个第二分区数据库 400, 例如 N个第二分区数据库 400, 每一个第二分区数据库 40 0分配有一个唯一的分区代码, 一个第二分区数据库 400存储一种类型的电商数 据数据。 例如, 第二分区数据库 A1存储电商数据数据中的文本数据, 第二分区 数据库 B 1存储电商数据数据中的图像数据, 第二分区数据库 C1存储电商数据数 据中的视频数据、 第二分区数据库 D1存储电商数据数据中的网页数据。 The second database server 4 is installed with a second database 40, wherein the database 40 is divided into a plurality of second partition databases 400, for example, N second partition databases 400, and each second partition database 40 0 A unique partition code is assigned, and a second partition database 400 stores one type of e-commerce data. For example, the second partition database A1 stores text data in the e-commerce data, the second partition database B1 stores image data in the e-commerce data, the second partition database C1 stores video data in the e-commerce data, and the second The partition database D1 stores web page data in the e-commerce data.
[0027] 具体而言, 所述第二数据库服务器 4提供数据导入接口 (例如, 应用程序接口 [0027] Specifically, the second database server 4 provides a data import interface (for example, an application interface
, Application Program Interface, API) , 接入该数据导入接口的设备或系统都可 以从所述第二数据库服务器 4中获取电商数据数据。 (Application Program Interface, API), the device or system accessing the data import interface can obtain the e-commerce data from the second database server 4.
[0028] 需要说明的是, 所述第二数据库服务器 4为所述第一数据库服务器 1的备用服务 器, 所述第一数据库服务器 1中的电商数据数据可以迁移至第二数据库服务器 4 中做备份。 [0028] It should be noted that the second database server 4 is an alternate service of the first database server 1. The e-commerce data in the first database server 1 can be migrated to the second database server 4 for backup.
[0029] 在本实施例中, 所述网络 2可以是有线通讯网络或无线通讯网络。 所述网络优 选为无线通讯网络, 包括但不限于, GSM网络、 GPRS网络、 CDMA网络、 TD-S CDMA网络、 WiMAM网络、 TD-LTE网络、 FDD-LTE网络等无线传输网络。 。 [0029] In this embodiment, the network 2 may be a wired communication network or a wireless communication network. The network is preferably a wireless communication network, including but not limited to, a GSM network, a GPRS network, a CDMA network, a TD-S CDMA network, a WiMAM network, a TD-LTE network, an FDD-LTE network, and the like. .
[0030] 进一步地, 所述数据迁移设备 3通过网络 2与多个终端 5通信连接, 用于通过所 述终端 5将第一数据库服务器 1中的电商数据数据迁移至第二数据库服务器 4中进 行备份。 [0030] Further, the data migration device 3 is communicatively connected to the plurality of terminals 5 through the network 2, and is configured to migrate the e-commerce data in the first database server 1 to the second database server 4 through the terminal 5. Make a backup.
[0031] 在本实施例中, 所述网络 2可以是有线通讯网络或无线通讯网络。 所述网络优 选为无线通讯网络, 包括但不限于, GSM网络、 GPRS网络、 CDMA网络、 TD-S CDMA网络、 WiMAM网络、 TD-LTE网络、 FDD-LTE网络等无线传输网络。 [0031] In this embodiment, the network 2 may be a wired communication network or a wireless communication network. The network is preferably a wireless communication network, including but not limited to, a GSM network, a GPRS network, a CDMA network, a TD-S CDMA network, a WiMAM network, a TD-LTE network, an FDD-LTE network, and the like.
[0032] 所述数据迁移设备 3可以是, 但不限于, 智能手机、 平板电脑、 个人数字助理 [0032] The data migration device 3 may be, but is not limited to, a smartphone, a tablet, a personal digital assistant.
(Personal Digital Assistant, PDA) 、 个人电脑、 电子看板等其它任意合适的终端 设备。 (Personal Digital Assistant, PDA), personal computer, electronic signage, and any other suitable terminal equipment.
[0033] 所述终端 5可以是, 但不限于, 智能手机、 平板电脑、 个人数字助理 (Personal Digital Assistant, PDA) 、 个人电脑、 电子看板等其它任意合适的便携式触摸屏 电子设备。 [0033] The terminal 5 may be, but not limited to, any other suitable portable touch screen electronic device such as a smart phone, a tablet computer, a personal digital assistant (PDA), a personal computer, an electronic signboard, and the like.
[0034] 参照图 2所示, 是本发明电商数据迁移系统的优选实施例的模块示意图。 在本 实施例中, 所述电商数据迁移系统 30应用于数据迁移设备 3。 该数据迁移设备 3 包括, 但不仅限于, 电商数据迁移系统 30、 存储单元 31、 处理单元 32、 及通讯 单元 33。 [0034] Referring to FIG. 2, it is a block diagram of a preferred embodiment of the e-commerce data migration system of the present invention. In the present embodiment, the e-commerce data migration system 30 is applied to the data migration device 3. The data migration device 3 includes, but is not limited to, an e-commerce data migration system 30, a storage unit 31, a processing unit 32, and a communication unit 33.
[0035] 所述的存储单元 31可以为一种只读存储单元 ROM, 电可擦写存储单元 EEPRO [0035] The storage unit 31 may be a read only storage unit ROM, an electrically erasable storage unit EEPRO
M、 快闪存储单元 FLASH或固体硬盘等。 M, flash memory unit FLASH or solid hard disk.
[0036] 所述的处理单元 32可以为一种中央处理器 (Central Processing Unit, CPU) 、 微控制器 (MCU) 、 数据处理芯片、 或者具有数据处理功能的信息处理单元。 [0036] The processing unit 32 may be a central processing unit (CPU), a microcontroller (MCU), a data processing chip, or an information processing unit having a data processing function.
[0037] 所述的通讯单元 33为一种具有远程通讯功能的通讯接口, 例如支持 GSM、 GPR[0037] The communication unit 33 is a communication interface with a remote communication function, for example, supporting GSM, GPR.
S、 WCDMA、 CDMA、 TD-SCDMA、 WiMAM、 TD-LTE、 FDD-LTE等无线通 讯技术的通讯接口, 支持 USB、 网线的有线通讯接口。 [0038] 所述电商数据迁移系统 30包括, 但不局限于, 接收模块 311、 获取模块 312、 搜 索模块 313、 集合模块314、 发送模块 315、 通知模块 316及判断模块 317, 本发明 所称的模块是指一种能够被所述数据迁移设备 3的处理单元 32执行并且能够完成 固定功能的一系列计算机程序指令段, 其存储在所述数据迁移设备 3的存储单元 31中。 Communication interfaces of wireless communication technologies such as S, WCDMA, CDMA, TD-SCDMA, WiMAM, TD-LTE, FDD-LTE, etc., support wired communication interfaces of USB and network cables. [0038] The e-commerce data migration system 30 includes, but is not limited to, a receiving module 311, an obtaining module 312, a searching module 313, a collecting module 314 , a sending module 315, a notification module 316, and a determining module 317, which are claimed in the present invention. The module refers to a series of computer program instruction segments that can be executed by the processing unit 32 of the data migration device 3 and that are capable of performing a fixed function, which are stored in the storage unit 31 of the data migration device 3.
[0039] 所述接收模块 311用于接收所述第一数据库服务器 1的数据迁移配置文件。 在本 实施例中, 所述数据迁移配置文件包括, 但不限于, 所述第一数据库服务器 1的 I P地址、 第一数据库服务器 1中每个第一分区数据 100的分区代码、 第一数据库服 务器 1中待迁移的电商数据数据的属性信息 (包括数据大小、 文件目录等信息) 、 第一数据库服务器 1的数据库配置文件 (例如, 数据库连接配置信息等) 、 所 述第二数据库服务器 4的 IP地址、 第二数据库服务器 4中每个第二分区数据 400的 分区代码、 第二数据库服务器 4的数据库配置文件 (例如, 数据库连接配置信息 等) 。 需要说明的是, 所述数据迁移配置文件可以预先保存于所述数据迁移设 备 3中, 并定期更新所述数据迁移配置文件。 [0039] The receiving module 311 is configured to receive a data migration configuration file of the first database server 1. In this embodiment, the data migration configuration file includes, but is not limited to, an IP address of the first database server 1, a partition code of each first partition data 100 in the first database server 1, and a first database server. Attribute information (including data size, file directory, and the like) of the e-commerce data to be migrated in 1 , a database configuration file (for example, database connection configuration information, etc.) of the first database server 1 , and the second database server 4 The IP address, the partition code of each second partition data 400 in the second database server 4, the database configuration file of the second database server 4 (for example, database connection configuration information, etc.). It should be noted that the data migration configuration file may be pre-stored in the data migration device 3, and the data migration configuration file is periodically updated.
[0040] 所述获取模块 312用于从所述数据迁移配置文件中获取所述第一数据库服务器 中待迁移的电商数据数据的大小。 [0040] The obtaining module 312 is configured to obtain, from the data migration configuration file, a size of the e-commerce data to be migrated in the first database server.
[0041] 所述搜索模块 313用于根据所述待迁移的电商数据数据的大小在网络 2中搜索对 应数量的终端 5。 所述待迁移的电商数据数据的大小与对应数量的终端 5之间的 关系为: M=a*N/N0, 其中, N为所述待迁移的电商数据数据的大小, NO为设定 的单位数据大小 (例如, 2GB) , M为终端的数量, a为正整数常量。 此外, 所 述搜索模块 312发送网络广播至网络 2中, 若连接至网络 2上的终端 5接收到所述 网络广播并同意作为数据迁移的中间设备, 则该终端 5为搜索的终端。 例如, 若 终端 5接收到网络广播, 则终端 5会弹出一个询问对话框, 该询问对话框包括确 定按键及取消按键, 使用该终端 5的用户点击确定按键, 则表明该终端 5授权为 第一数据库服务器 1迁移数据的中间设备, 若使用该终端 5的用户点击取消按键 , 则表明该终端 5拒绝为第一数据库服务器 1迁移数据的中间设备。 为了避免终 端 5过高的拒绝率, 可以在网络广播中嵌入奖励信息, 例如, 若终端 5同意为迁 移数据的中间设备后, 可以发一个电子货币 (例如, 1元人民币的电子货币) 给 该终端 5。 此外, 也可以将用户的终端作为迁移数据的中间设备。 为了避免影响 用户的工作及生活, 对第一数据库服务器 1的电商数据数据进行迁移吋, 设定在 晚上 12点之后至早上 4点之间进行。 [0041] The search module 313 is configured to search the network 2 for a corresponding number of terminals 5 according to the size of the e-commerce data to be migrated. The relationship between the size of the e-commerce data to be migrated and the corresponding number of terminals 5 is: M=a*N/N0, where N is the size of the e-commerce data to be migrated, and NO is set. The unit data size (for example, 2GB), M is the number of terminals, and a is a positive integer constant. In addition, the search module 312 sends a network broadcast to the network 2, and if the terminal 5 connected to the network 2 receives the network broadcast and agrees to be an intermediate device for data migration, the terminal 5 is a searched terminal. For example, if the terminal 5 receives the network broadcast, the terminal 5 pops up a query dialog box, which includes a confirmation button and a cancel button. When the user using the terminal 5 clicks the OK button, the terminal 5 is authorized to be the first. The intermediate device that the database server 1 migrates data, if the user using the terminal 5 clicks the cancel button, indicates that the terminal 5 rejects the intermediate device that migrates data for the first database server 1. In order to avoid the excessive rejection rate of the terminal 5, the reward information may be embedded in the network broadcast. For example, if the terminal 5 agrees to be an intermediate device for migrating data, an electronic money (for example, 1 yuan of electronic money) may be sent to The terminal 5. In addition, the user's terminal can also be used as an intermediate device for migrating data. In order to avoid affecting the work and life of the user, the e-commerce data of the first database server 1 is migrated, and the setting is made after 12 o'clock in the evening to 4 o'clock in the morning.
[0042] 所述集合模块 314用于将所有搜索的终端 5集合成一个集群 (cluster) 。 具体地 说, 所述集合模块 314将所有搜索的终端 5集合成一个集群的方式如下: (1) 给 每个搜索的终端 5的分配一个编码; (2) 获取每个搜索的终端 5的 IP地址; (3) 创建一个集群配置文件并发送给每个搜索的终端 5从而完成集群的创建, 所述集 群配置文件中包括每个搜索的终端 5的 IP地址及编码。 需要说明的是, 集群中两 个搜索的终端 5之间可以通信连接 (根据 IP地址及编码) 并进行数据交换, 当集 群中某一个终端 5无法直接将数据传输给第二数据库服务器 4吋, 该终端 5可以在 集群中通过另外一台终端 5将数据传输给第二数据库服务器 4。 [0042] The aggregation module 314 is configured to aggregate all the searched terminals 5 into a cluster. Specifically, the manner in which the aggregation module 314 aggregates all the searched terminals 5 into one cluster is as follows: (1) assigning an encoding to each of the searched terminals 5; (2) acquiring the IP of each searched terminal 5. Address: (3) Create a cluster configuration file and send it to each searched terminal 5 to complete the creation of the cluster. The cluster configuration file includes the IP address and code of each searched terminal 5. It should be noted that the two search terminals 5 in the cluster can communicate with each other (according to the IP address and encoding) and exchange data. When one terminal 5 in the cluster cannot directly transmit data to the second database server 4, The terminal 5 can transmit data to the second database server 4 via another terminal 5 in the cluster.
[0043] 所述发送模块 315用于发送所述数据迁移配置文件给集群中每一个终端 5, 使得 所述集群中每一个终端 5在第一数据库服务器 1及第二数据库服务器 4之间建立通 信连接。 所述集群中的终端 5接收到所述数据迁移配置文件后, 根据所述第一数 据库服务器 1的 IP地址与所述第一数据库服务器 1通信连接, 根据第一数据库服务 器 1的数据库配置文件访问所述第一分区数据库 100, 根据所述第二数据库服务 器 4的 IP地址与所述第二数据库服务器 4通信连接, 根据第二数据库服务器 4的数 据库配置文件访问所述第二分区数据库 400。 [0043] The sending module 315 is configured to send the data migration configuration file to each terminal 5 in the cluster, so that each terminal 5 in the cluster establishes communication between the first database server 1 and the second database server 4. connection. After receiving the data migration configuration file, the terminal 5 in the cluster communicates with the first database server 1 according to the IP address of the first database server 1, and accesses according to the database configuration file of the first database server 1. The first partition database 100 is communicably connected to the second database server 4 according to the IP address of the second database server 4, and accesses the second partition database 400 according to the database configuration file of the second database server 4.
[0044] 所述通知模块 316用于通知所述第一数据库服务器 1将所述待迁移的电商数据数 据通过所述搜索的终端 5发送至第二数据库服务器 4。 具体地说, 所述通知模块 3 16通知所述第一数据库服务器 1将从第一分区数据库 100中的文本数据通过搜索 的终端 5转移至第二分区数据库 A1存储。 [0044] The notification module 316 is configured to notify the first database server 1 to send the e-commerce data to be migrated to the second database server 4 through the searched terminal 5. Specifically, the notification module 316 notifies the first database server 1 to transfer the text data in the first partition database 100 from the searched terminal 5 to the second partition database A1 for storage.
[0045] 所述判断模块 317用于判断集群中是否有终端 5均处于闲置状态。 具体地说, 所 述判断模块 317对集群中的每一个终端 5进行检测, 判断终端 5是否在传输电商数 据数据 (例如, 通过获取集群中终端运行的相关线程来判断) , 若集群中有终 端 5没有传输电商数据数据, 则该终端 5处于闲置状态。 [0045] The determining module 317 is configured to determine whether any of the terminals 5 in the cluster are in an idle state. Specifically, the determining module 317 detects each terminal 5 in the cluster, and determines whether the terminal 5 is transmitting e-commerce data (for example, by acquiring a related thread running in the terminal in the cluster), if the cluster has If the terminal 5 does not transmit the e-commerce data, the terminal 5 is in an idle state.
[0046] 所述通知模块 316还用于当集群中有终端 5处于闲置状态吋, 通知集群中处于闲 置状态的终端 5主动获取所述第一数据库服务器 1中待迁移的电商数据数据并发 生至第二数据库服务器 4。 [0046] The notification module 316 is further configured to notify the terminal 5 in the idle state that the terminal 5 in the cluster is in an idle state to actively acquire the e-commerce data to be migrated in the first database server 1 concurrently. Born to the second database server 4.
[0047] 参照图 3所示, 是本发明电商数据迁移方法的优选实施例的流程图。 在本实施 例中, 所述的电商数据迁移方法应用于数据迁移设备 3, 该方法包括以下步骤: [0047] Referring to FIG. 3, it is a flow chart of a preferred embodiment of the e-commerce data migration method of the present invention. In this embodiment, the e-commerce data migration method is applied to the data migration device 3, and the method includes the following steps:
[0048] 步骤 S11 : 所述接收模块 311接收所述第一数据库服务器 1的数据迁移配置文件 。 在本实施例中, 所述数据迁移配置文件包括, 但不限于, 所述第一数据库服 务器 1的 IP地址、 第一数据库服务器 1中每个第一分区数据 100的分区代码、 第一 数据库服务器 1中待迁移的电商数据数据的属性信息 (包括数据大小、 文件目录 等信息) 、 第一数据库服务器 1的数据库配置文件 (例如, 数据库连接配置信息 等) 、 所述第二数据库服务器 4的 IP地址、 第二数据库服务器 4中每个第二分区数 据 400的分区代码、 第二数据库服务器 4的数据库配置文件 (例如, 数据库连接 配置信息等) 。 需要说明的是, 所述数据迁移配置文件可以预先保存于所述数 据迁移设备 3中, 并定期更新所述数据迁移配置文件。 [0048] Step S11: The receiving module 311 receives the data migration configuration file of the first database server 1. In this embodiment, the data migration configuration file includes, but is not limited to, an IP address of the first database server 1, a partition code of each first partition data 100 in the first database server 1, and a first database server. Attribute information (including data size, file directory, and the like) of the e-commerce data to be migrated in 1 , a database configuration file (for example, database connection configuration information, etc.) of the first database server 1 , and the second database server 4 The IP address, the partition code of each second partition data 400 in the second database server 4, the database configuration file of the second database server 4 (for example, database connection configuration information, etc.). It should be noted that the data migration configuration file may be pre-stored in the data migration device 3, and the data migration configuration file is periodically updated.
[0049] 步骤 S12: 所述获取模块 312从所述数据迁移配置文件中获取所述第一数据库服 务器中待迁移的电商数据数据的大小。 [0049] Step S12: The obtaining module 312 obtains, from the data migration configuration file, the size of the e-commerce data to be migrated in the first database server.
[0050] 步骤 S13: 所述搜索模块 313根据所述待迁移的电商数据数据的大小在网络 2中 搜索终端 5。 所述待迁移的电商数据数据的大小与对应数量的终端 5之间的关系 为: M=a*N/N0, 其中, N为所述待迁移的电商数据数据的大小, NO为设定的单 位数据大小 (例如, 1GB) , M为终端的数量, a为正整数常量。 此外, 所述搜 索模块 312发送网络广播至网络 2中, 若连接至网络 2上的终端 5接收到所述网络 广播并同意作为数据迁移的中间设备, 则该终端 5为搜索的终端。 例如, 若终端 5接收到网络广播, 则终端 5会弹出一个询问对话框, 该询问对话框包括确定按 键及取消按键, 使用该终端 5的用户点击确定按键, 则表明该终端 5授权为第一 数据库服务器 1迁移数据的中间设备, 若使用该终端 5的用户点击取消按键, 则 表明该终端 5拒绝为第一数据库服务器 1迁移数据的中间设备。 为了避免终端 5过 高的拒绝率, 可以在网络广播中嵌入奖励信息, 例如, 若终端 5同意为迁移数据 的中间设备后, 可以发一个电子货币 (例如, 1元人民币的电子货币) 给该终端 5。 此外, 也可以将用户的终端作为迁移数据的中间设备。 为了避免影响用户的 工作及生活, 对第一数据库服务器 1的电商数据数据进行迁移吋, 设定在晚上 12 点之后至早上 4点之间进行。 [0050] Step S13: The search module 313 searches the network 2 for the terminal 5 according to the size of the e-commerce data to be migrated. The relationship between the size of the e-commerce data to be migrated and the corresponding number of terminals 5 is: M=a*N/N0, where N is the size of the e-commerce data to be migrated, and NO is set. The unit data size (for example, 1GB), M is the number of terminals, and a is a positive integer constant. In addition, the search module 312 sends a network broadcast to the network 2, and if the terminal 5 connected to the network 2 receives the network broadcast and agrees to be an intermediate device for data migration, the terminal 5 is a searched terminal. For example, if the terminal 5 receives the network broadcast, the terminal 5 pops up a query dialog box, which includes a confirmation button and a cancel button. When the user using the terminal 5 clicks the OK button, the terminal 5 is authorized to be the first. The intermediate device that the database server 1 migrates data, if the user using the terminal 5 clicks the cancel button, indicates that the terminal 5 rejects the intermediate device that migrates data for the first database server 1. In order to avoid the excessive rejection rate of the terminal 5, the reward information may be embedded in the network broadcast. For example, if the terminal 5 agrees to be an intermediate device for migrating data, an electronic money (for example, 1 yuan of electronic money) may be sent to the terminal. Terminal 5. In addition, the user's terminal can also be used as an intermediate device for migrating data. In order to avoid affecting the work and life of the user, the e-commerce data of the first database server 1 is migrated, and is set at 12 in the evening. After the point, it will be between 4 am.
[0051] 步骤 S14: 所述集合模块 314将所有搜索的终端 5集合成一个集群 (cluster) 。 具 体地说, 所述集合模块 314将所有搜索的终端 5集合成一个集群的方式如下: (1 ) 给每个搜索的终端 5的分配一个编码; (2) 获取每个搜索的终端 5的 IP地址; (3) 创建一个集群配置文件并发送给每个搜索的终端 5从而完成集群的创建, 所述集群配置文件中包括每个搜索的终端 5的 IP地址及编码。 需要说明的是, 集 群中两个搜索的终端 5之间可以通信连接 (根据 IP地址及编码) 并进行数据交换 , 当集群中某一个终端 5无法直接将数据传输给第二数据库服务器 4吋, 该终端 5 可以在集群中通过另外一台终端 5将数据传输给第二数据库服务器 4。 [0051] Step S14: The aggregation module 314 aggregates all the searched terminals 5 into a cluster. Specifically, the manner in which the aggregation module 314 aggregates all the searched terminals 5 into one cluster is as follows: (1) assigning an encoding to each of the searched terminals 5; (2) acquiring the IP of each searched terminal 5. Address: (3) Create a cluster configuration file and send it to each searched terminal 5 to complete the creation of the cluster. The cluster configuration file includes the IP address and code of each searched terminal 5. It should be noted that the two search terminals 5 in the cluster can communicate with each other (according to the IP address and encoding) and exchange data. When one terminal 5 in the cluster cannot directly transmit data to the second database server 4, The terminal 5 can transmit data to the second database server 4 via another terminal 5 in the cluster.
[0052] 步骤 S15: 所述发送模块 314发送所述数据迁移配置文件给集群中每一个终端 5 , 使得所述集群中每一个终端 5在第一数据库服务器 1及第二数据库服务器 4之间 建立通信连接。 所述集群中的终端 5接收到所述数据迁移配置文件后, 根据所述 第一数据库服务器 1的 IP地址与所述第一数据库服务器 1通信连接, 根据第一数据 库服务器 1的数据库配置文件访问所述第一分区数据库 100, 根据所述第二数据 库服务器 4的 IP地址与所述第二数据库服务器 4通信连接, 根据第二数据库服务器 4的数据库配置文件访问所述第二分区数据库 400。 [0052] Step S15: The sending module 314 sends the data migration configuration file to each terminal 5 in the cluster, so that each terminal 5 in the cluster is established between the first database server 1 and the second database server 4. Communication connection. After receiving the data migration configuration file, the terminal 5 in the cluster communicates with the first database server 1 according to the IP address of the first database server 1, and accesses according to the database configuration file of the first database server 1. The first partition database 100 is communicably connected to the second database server 4 according to the IP address of the second database server 4, and accesses the second partition database 400 according to the database configuration file of the second database server 4.
[0053] 步骤 S16: 所述通知模块 316通知所述第一数据库服务器 1将所述待迁移的电商 数据数据通过所述搜索的终端 5发送至第二数据库服务器 4。 具体地说, 所述通 知模块 316通知所述第一数据库服务器 1将从第一分区数据库 100中的文本数据通 过搜索的终端 5转移至第二分区数据库 A1存储。 [0053] Step S16: The notification module 316 notifies the first database server 1 to send the e-commerce data to be migrated to the second database server 4 through the searched terminal 5. Specifically, the notification module 316 notifies the first database server 1 to transfer the text data in the first partition database 100 from the searched terminal 5 to the second partition database A1 for storage.
[0054] 步骤 S17: 所述判断模块 317判断集群中是否有终端 5均处于闲置状态。 具体地 说, 所述判断模块 317对集群中的每一个终端 5进行检测, 判断终端 5是否在传输 电商数据数据 (例如, 通过获取集群中终端运行的相关线程来判断) , 若集群 中有终端 5没有传输电商数据数据, 则该终端 5处于闲置状态。 若集群中有终端 5 均处于闲置状态, 流程进入步骤 S18。 否则, 若集群中没有终端 5处于闲置状态 , 重复执行步骤 S17。 [0054] Step S17: The determining module 317 determines whether any of the terminals 5 in the cluster are in an idle state. Specifically, the determining module 317 detects each terminal 5 in the cluster, and determines whether the terminal 5 is transmitting e-commerce data (for example, by acquiring a related thread running in the terminal in the cluster), if the cluster has If the terminal 5 does not transmit the e-commerce data, the terminal 5 is in an idle state. If all the terminals 5 in the cluster are idle, the flow proceeds to step S18. Otherwise, if no terminal 5 is idle in the cluster, repeat step S17.
[0055] 步骤 S18: 所述通知模块 316通知集群中处于闲置状态的终端 5主动获取所述第 一数据库服务器 1中待迁移的电商数据数据并发生至第二数据库服务器 4。 工业实用性 [0055] Step S18: The notification module 316 notifies the terminal 5 in the idle state that the e-commerce data to be migrated in the first database server 1 is actively acquired and occurs to the second database server 4. Industrial applicability
本发明采用多个终端对电商数据进行数据迁移, 利用终端所用的网络带宽, 节 省电商的带宽费用, 且数据迁移过程中, 能够动态地査看终端的状态, 最大限 度地利用终端进行数据迁移。 The invention adopts multiple terminals to perform data migration on the e-commerce data, utilizes the network bandwidth used by the terminal, saves the bandwidth cost of the e-commerce, and can dynamically view the state of the terminal during the data migration process, and utilize the terminal to perform data maximally. migrate.
Claims
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/077009 WO2018165962A1 (en) | 2017-03-17 | 2017-03-17 | E-commerce data migration system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/077009 WO2018165962A1 (en) | 2017-03-17 | 2017-03-17 | E-commerce data migration system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018165962A1 true WO2018165962A1 (en) | 2018-09-20 |
Family
ID=63522779
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/077009 Ceased WO2018165962A1 (en) | 2017-03-17 | 2017-03-17 | E-commerce data migration system and method |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2018165962A1 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050283522A1 (en) * | 2004-06-16 | 2005-12-22 | Jarmo Parkkinen | Arrangement and method for optimizing performance and data safety in a highly available database system |
| CN101771717A (en) * | 2008-12-29 | 2010-07-07 | 深圳市维信联合科技有限公司 | Database synchronization method and database synchronization system |
| CN104616180A (en) * | 2015-03-09 | 2015-05-13 | 浪潮集团有限公司 | Method for predicting hot sellers |
| CN104699736A (en) * | 2014-11-21 | 2015-06-10 | 北京华悦科技有限公司 | Distributed massive data acquisition system and method based on mobile devices |
| CN106529194A (en) * | 2016-12-02 | 2017-03-22 | 深圳市前海安测信息技术有限公司 | Medical informatization electronic medical record data migration system and method |
-
2017
- 2017-03-17 WO PCT/CN2017/077009 patent/WO2018165962A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050283522A1 (en) * | 2004-06-16 | 2005-12-22 | Jarmo Parkkinen | Arrangement and method for optimizing performance and data safety in a highly available database system |
| CN101771717A (en) * | 2008-12-29 | 2010-07-07 | 深圳市维信联合科技有限公司 | Database synchronization method and database synchronization system |
| CN104699736A (en) * | 2014-11-21 | 2015-06-10 | 北京华悦科技有限公司 | Distributed massive data acquisition system and method based on mobile devices |
| CN104616180A (en) * | 2015-03-09 | 2015-05-13 | 浪潮集团有限公司 | Method for predicting hot sellers |
| CN106529194A (en) * | 2016-12-02 | 2017-03-22 | 深圳市前海安测信息技术有限公司 | Medical informatization electronic medical record data migration system and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI614703B (en) | Information recommendation method and information recommendation device | |
| JP2022091890A (en) | A system and method for creating a user management online page (MAPpage) linked to a location on an interactive digital map. | |
| US8346796B2 (en) | System for searching property listings based on location | |
| US9268716B2 (en) | Writing data from hadoop to off grid storage | |
| US10095800B1 (en) | Multi-tenant data store management | |
| CN104092555B (en) | A kind of methods, devices and systems of undated parameter value | |
| CN104823169A (en) | Index configuration for searchable data in a network | |
| CN103959745A (en) | Monitoring application program resource consumption | |
| EP3061004A1 (en) | Pervasive search architecture | |
| WO2018099100A1 (en) | Electronic medical record data migration system and method for medical informatization | |
| CN106462561B (en) | Optimize the browser rendering process | |
| JP2018506780A (en) | Techniques for graph-based natural language processing | |
| CN105518644A (en) | Method for processing and displaying real-time social data on map | |
| CN103617267A (en) | Socialized extension search method, device and system | |
| TWI235946B (en) | Method and system of displaying data | |
| EP2939200A1 (en) | Method and apparatus for secure advertising | |
| WO2018099103A1 (en) | Electronic medical record processing system and method based on cluster data migration | |
| WO2018099101A1 (en) | Mobile terminal-based electronic medical record data migration system and method | |
| WO2018099102A1 (en) | System and method for dynamic migration of electronic medical record data | |
| CN102890685B (en) | The method and apparatus that a kind of information is redirected | |
| US20210141824A1 (en) | Geolocation restricted content registration and publication | |
| GB2504610A (en) | Managing data items using structured tags | |
| CN107924415B (en) | Providing location information from a location-unaware device to a search query to improve user interaction performance | |
| US10469575B2 (en) | Techniques for contact exporting | |
| TW201344607A (en) | Business object determination method and determination device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17901245 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17901245 Country of ref document: EP Kind code of ref document: A1 |