Information storage method, device, electronic device and computer readable medium

Through the file transfer pool and cache pool, employee value acquisition information is processed in segments, and idle threads and nodes are used for segmented reading and verification, which solves the problems of server lag, verification failure and information leakage, and improves system performance and security.

CN115098453BActive Publication Date: 2024-10-11DIANMI (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210723008.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2024-10-11
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

In enterprises, uploading employee value acquisition information causes server lags, unverified information may lead to verification failure and leakage, and large amounts of data occupy memory, causing upload failures.

Method used

Adopting an information storage method, the user value acquisition information is processed in segments through the file transfer pool and cache pool, and idle threads and nodes are used for segmented reading and verification to ensure information security and system performance.

Benefits of technology

It alleviates server freezes, reduces the waste of computing resources and the risk of information leakage, and avoids upload failures caused by excessive memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098453B_ABST
    Figure CN115098453B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose information storage methods, devices, electronic devices and computer-readable media. A specific implementation of the method includes: in response to receiving a user value acquisition information file submitted by at least one user terminal, adding each received user value acquisition information file to a file transfer pool according to the submission time corresponding to the user value acquisition information file; in response to determining that there are currently idle file reading threads, reading a target number of user value acquisition information files from the file transfer pool, and adding the target number of user value acquisition information files to the file cache pool; reading the user value acquisition information included in each user value acquisition information file in the file cache pool into the data cache pool; generating a user value acquisition information form group according to each user value acquisition information included in the data cache pool. This implementation alleviates the jamming of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the computer field, and in particular to an information storage method, device, electronic device, and computer-readable medium. Background Art

[0002] Currently, the verification of the value acquisition information (eg, salary) of each employee in an enterprise is usually carried out in the following manner: within a preset time period, business personnel from different departments upload the value acquisition information of employees in each department to the business system for verification and checking.

[0003] However, the above method usually has the following technical problems:

[0004] First, when there are many employees in an enterprise, the amount of data uploaded to obtain value information within the preset time period is large, which can easily cause server lag;

[0005] Second, the uploaded user value acquisition information is not verified. When there are errors in the uploaded user value acquisition information, it is easy to cause subsequent verification and verification failure, wasting computing resources;

[0006] Third, since the amount of user value acquisition information is large, if the user value acquisition information is directly verified, it will occupy a lot of memory in the business system, which may easily lead to the failure of subsequent upload of user value acquisition information;

[0007] Fourth, failure to verify the source of uploaded user value acquisition information may easily lead to the leakage of user value acquisition information.

[0008] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0009] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0010] Some embodiments of the present disclosure propose information storage methods, devices, electronic devices, and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.

[0011] In a first aspect, some embodiments of the present disclosure provide an information storage method, the method comprising: in response to receiving a user value acquisition information file submitted by at least one user terminal, adding each received user value acquisition information file to a file transfer pool according to the submission time corresponding to the user value acquisition information file, wherein the user value acquisition information file in the above-mentioned each user value acquisition information file corresponds to a user terminal in the above-mentioned at least one user terminal; in response to determining that there are currently idle file reading threads, reading a target number of user value acquisition information files from the above-mentioned file transfer pool, and adding the above-mentioned target number of user value acquisition information files to a file cache pool, wherein the above-mentioned target number of threads is: the number of file reading threads in the idle state; in response to the file reading node being in a running state, reading the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool into a data cache pool; generating a user value acquisition information form group according to each user value acquisition information included in the above-mentioned data cache pool, and storing the above-mentioned user value acquisition information form group in a target database.

[0012] In a second aspect, some embodiments of the present disclosure provide an information storage device, the device comprising: an adding unit, configured to, in response to receiving a user value acquisition information file submitted by at least one user terminal, add each received user value acquisition information file to a file transfer pool according to the submission time corresponding to the user value acquisition information file, wherein the user value acquisition information file in the above-mentioned user value acquisition information file corresponds to a user terminal in the above-mentioned at least one user terminal; a first reading unit, configured to, in response to determining that there are currently idle file reading threads, read a target number of user value acquisition information files from the above-mentioned file transfer pool, and add the above-mentioned target number of user value acquisition information files to a file cache pool, wherein the above-mentioned target number of threads is: the number of file reading threads in the idle state; a second reading unit, configured to, in response to the file reading node being in a running state, read the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool into a data cache pool; a generating unit, configured to generate a user value acquisition information form group according to each user value acquisition information included in the above-mentioned data cache pool, and store the above-mentioned user value acquisition information form group into a target database.

[0013] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0014] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0015] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the information storage method of some embodiments of the present disclosure, the problem of server jamming is alleviated. Specifically, the reason why the server jamming is easy to occur is that when there are many employees in the enterprise, the amount of data uploaded for value acquisition information is large within a preset time period, which easily causes the server jamming. Based on this, the information storage method of some embodiments of the present disclosure, first, in response to receiving a user value acquisition information file submitted by at least one user terminal, according to the submission time corresponding to the user value acquisition information file, each received user value acquisition information file is added to the file transfer pool. Thus, the files uploaded by each user terminal can be temporarily stored in the file transfer pool first to avoid server jamming when multiple files are uploaded at the same time. Then, in response to determining that there is currently an idle file reading thread, the target thread number of user value acquisition information files are read from the above file transfer pool, and the target thread number of user value acquisition information files are added to the file cache pool. Thus, the user value acquisition information files in the file transfer pool can be read according to the number of currently available file reading threads. It is avoided that the user value acquisition information files submitted by the user terminal are read at the same time and occupy too many threads of the server. Then, in response to the file reading node being in operation, the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool is read into the data cache pool. Thus, only the key information (user value acquisition information) included in the user value acquisition information file can be read into the data cache pool to avoid occupying too much memory of the data cache pool. Finally, according to each user value acquisition information included in the above-mentioned data cache pool, a user value acquisition information form group is generated, and the above-mentioned user value acquisition information form group is stored in the target database. Thus, the files uploaded by the user end can be segmented and cached through the file transfer pool and the file cache pool to avoid occupying more threads of the server. Thus, the server jam is alleviated. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0017] Figure 1 is a flow chart of some embodiments of the information storage method according to the present disclosure;

[0018] Figure 2 is a schematic diagram of the structure of some embodiments of the information storage device according to the present disclosure;

[0019] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0021] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0022] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0025] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0026] Figure 1 1 is a flow chart of some embodiments of the information storage method according to the present disclosure. It shows a process 100 of some embodiments of the information storage method according to the present disclosure. The information storage method comprises the following steps:

[0027] Step 101, in response to receiving a user value acquisition information file submitted by at least one user terminal, adding each received user value acquisition information file to a file transfer pool according to the submission time corresponding to the user value acquisition information file.

[0028] In some embodiments, the execution subject (e.g., a computing device) of the information storage method may respond to receiving a user value acquisition information file submitted by at least one user terminal, and according to the submission time corresponding to the user value acquisition information file, add each received user value acquisition information file to the file transfer pool. Here, the submission time may refer to the time when the user value acquisition information file is submitted by the user terminal. Here, the user value acquisition information file may refer to a file composed of value acquisition information of each user corresponding to a user terminal. The value acquisition information may represent the income information of a user (e.g., the income information may represent the monthly salary of the user). The income information may include, but is not limited to: user name, user ID number, user department name, user value acquisition information (e.g., basic salary, bonus). The file transfer pool may be a pre-set database or task pool for temporarily storing user value acquisition information files submitted by the user terminal. In practice, the above-mentioned execution subject may add each received user value acquisition information file to the file transfer pool in the order of the submission time of each user value acquisition information file submitted by the above-mentioned at least one user terminal.

[0029] Optionally, before step 101, the method further includes:

[0030] The first step is to read the client information of each of the above-mentioned client terminals in response to receiving the access request submitted by each client terminal, and obtain the client terminal information group. The client terminal information in the above-mentioned client terminal information group includes: user identification and client terminal identification. Here, the user identification can represent the user account of the logged-in client terminal. The client terminal identification can uniquely represent the client terminal,

[0031] In the second step, for each user terminal information in the above user terminal information group, the following processing steps are performed:

[0032] The first sub-step is to determine whether there is a user access identifier hash value corresponding to the above hash value in a preset user access identifier hash value group according to the hash value of the user identifier included in the above user terminal information. Here, the hash value of the user identifier may refer to the hash value of the set user identifier. In practice, the above execution subject may determine whether there is a user access identifier hash value identical to the above hash value in a preset user access identifier hash value group.

[0033] The second sub-step, in response to determining that there is a user access identification hash value corresponding to the above hash value in the above user access identification hash value group, determines whether there is a device identification hash value identical to the identification hash value of the above user terminal identification in the device identification hash value group associated with the target user access identification hash value. Among them, the above target user access identification hash value is: the user access identification hash value corresponding to the above hash value in the above user access identification hash value group. Here, the device identification hash value group associated with the target user access identification hash value can be a pre-set device identification hash value bound to the target user access identification hash value. The device identification hash value can represent a user terminal identification. In practice, the above execution subject can determine whether there is a device identification hash value identical to the identification hash value of the above user terminal identification in the device identification hash value group.

[0034] The third sub-step is, in response to determining that there is a device identification hash value identical to the identification hash value of the user terminal identification in the device identification hash value group, receiving a user value acquisition information file submitted by the user terminal corresponding to the user terminal identification.

[0035] The above-mentioned optional contents are an inventive point of the present disclosure, thereby solving the technical problem 4 mentioned in the background technology, "the source of the uploaded user value acquisition information is not verified, which is easy to cause the leakage of the user value acquisition information." The factors that are easy to cause the leakage of the user value acquisition information are often as follows: the source of the uploaded user value acquisition information is not verified, which is easy to cause the leakage of the user value acquisition information. If the above factors are solved, the effect of reducing the leakage of the user value acquisition information can be achieved. In order to achieve this effect, first, in response to receiving the access request submitted by each user terminal, the user terminal information of each user terminal in the above-mentioned user terminals is read to obtain a user terminal information group. Among them, the user terminal information in the above-mentioned user terminal information group includes: user identification and user terminal identification. In this way, it is convenient to verify the user and user terminal who initiate the access request. Then, for each user terminal information in the above-mentioned user terminal information group, the following processing steps are performed: according to the hash value of the user identification included in the above-mentioned user terminal information, it is determined whether there is a user access identification hash value corresponding to the above-mentioned hash value in the preset user access identification hash value group. In this way, the user who logs in to the user terminal can be verified. Then, in response to determining that there is a user access identification hash value corresponding to the above hash value in the above user access identification hash value group, determine whether there is a device identification hash value identical to the identification hash value of the above user terminal identifier in the device identification hash value group associated with the target user access identification hash value. Among them, the above target user access identification hash value is: the user access identification hash value corresponding to the above hash value in the above user access identification hash value group. In this way, the user terminal can be verified. Finally, in response to determining that there is a device identification hash value identical to the identification hash value of the above user terminal identifier in the above device identification hash value group, receive the user value acquisition information file submitted by the user terminal corresponding to the above user terminal identifier. In this way, the verification of the source of the uploaded user value acquisition information is completed, reducing the leakage of user value acquisition information.

[0036] Step 102, in response to determining that there are currently idle file reading threads, read user value acquisition information files of the target number of threads from the above file transfer pool, and add the above user value acquisition information files of the target number of threads to the file cache pool.

[0037] In some embodiments, the execution subject may respond to determining that there is currently an idle file reading thread, read a target number of threads user value acquisition information files from the file transfer pool, and add the target number of threads user value acquisition information files to the file cache pool. The target number of threads is: the number of file reading threads in an idle state. The file reading thread may refer to a pre-set thread for reading user value acquisition information files. In practice, first, the user value acquisition information files in the file transfer pool may be read in sequence by each file reading thread in an idle state. Then, the target number of threads user value acquisition information files may be added to the file cache pool. Here, the file cache pool may refer to a task pool for detecting user value acquisition information files.

[0038] Step 103, in response to the file reading node being in the running state, the user value acquisition information included in each user value acquisition information file in the above file cache pool is read into the data cache pool.

[0039] In some embodiments, the above-mentioned execution subject can read the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool into the data cache pool in response to the file reading node being in a running state. Here, the file reading node can be a node set in the above-mentioned execution subject for reading user value acquisition information files. The data cache pool may refer to a cache pool for storing and verifying user value acquisition information. In practice, the above-mentioned execution subject can read the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool into the data cache pool through the above-mentioned file reading node in response to the file reading node being in a running state. Among them, the user value acquisition information file in the above-mentioned each user value acquisition information file includes the user file name.

[0040] In some optional implementations of some embodiments, the execution subject may perform the following processing steps for each user value acquisition information file in the file cache pool:

[0041] The first step is to determine whether the format of the user file name included in the user value acquisition information file is a first preset format. Here, the first preset format can represent a preset format of the user file name. For example, the first preset format can be: XX Company-YY Department-User Value Acquisition File / List.

[0042] In the second step, in response to determining that the format of the user file name included in the user value acquisition information file is the first preset format, determine whether the format of each user value acquisition information included in the user value acquisition information file is the second preset format. Here, the second preset format may refer to the format set for the field values ​​of some fields in the user value acquisition information. For example, some fields may include the user ID number and the user mobile phone number. The second preset format may be: the user ID number is 18 digits and the user mobile phone number is 11 digits.

[0043] In the third step, in response to determining that the format of each user value acquisition information included in the above-mentioned user value acquisition information file is the above-mentioned second preset format, the various user value acquisition information included in the above-mentioned user value acquisition information file is read into the above-mentioned data cache pool according to the preset read field name group. Here, the preset read field name group can be a pre-set reference field name for reading the fields of each user value acquisition information in the user value acquisition information file and the field values ​​corresponding to the fields. For example, the read field name group can include: user name, user ID number, and user's value acquisition information. In practice, for each user value acquisition information included in the above-mentioned user value acquisition information file, the above-mentioned execution entity can read the field name and field value corresponding to the above-mentioned read field name group in the above-mentioned user value acquisition information into the above-mentioned data cache pool.

[0044] The relevant contents in the above optional implementation methods are an inventive point of the present disclosure, thereby solving the second technical problem mentioned in the background technology: "The uploaded user value acquisition information is not checked. When the uploaded user value acquisition information has errors, it is easy to cause the subsequent verification and verification to fail, wasting computing resources." The factors that waste computing resources are often as follows: the uploaded user value acquisition information is not checked. When the uploaded user value acquisition information has errors, it is easy to cause the subsequent verification and verification to fail, wasting computing resources. If the above factors are solved, the effect of reducing the waste of computing resources can be achieved. In order to achieve this effect, for each user value acquisition information file in the above file cache pool, the following processing steps are performed: First, determine whether the format of the user file name included in the above user value acquisition information file is the first preset format. Thus, it can be determined whether the file name format is correct to avoid receiving some files with wrong formats, resulting in subsequent data reading failure. Then, in response to determining that the format of the user file name included in the above user value acquisition information file is the above first preset format, determine whether the format of each user value acquisition information included in the above user value acquisition information file is the second preset format. Thus, it can be determined whether the data format in the file is correct. Finally, in response to determining that the format of each user value acquisition information included in the user value acquisition information file is the second preset format, the user value acquisition information included in the user value acquisition information file is read into the data cache pool according to the preset read field name group. In this way, the uploaded user value acquisition information can be checked to avoid the waste of computing resources caused by data reading failure.

[0045] Optionally, in response to determining that the format of the user file name included in the user value acquisition information file is not the first preset format, the user value acquisition information file is marked as a first abnormal user value acquisition information file, and the user value acquisition information file in the file cache pool is deleted. Here, the words "abnormal user file name file" can be added to the user value acquisition information file.

[0046] In some embodiments, the execution subject may, in response to determining that the format of the user file name included in the user value acquisition information file is not the first preset format, mark the user value acquisition information file as a first abnormal user value acquisition information file, and delete the user value acquisition information file in the file cache pool. Here, the words "abnormal user file name" may be added to the user value acquisition information file.

[0047] Optionally, in response to determining that the format of each user value acquisition information included in the user value acquisition information file is not the second preset format, the user value acquisition information file is marked as a second abnormal user value acquisition information file, and the user value acquisition information file in the file cache pool is deleted. Here, the words "abnormal format of user value acquisition information" can be added to the user value acquisition information file.

[0048] In some embodiments, the execution subject may, in response to determining that the format of each user value acquisition information included in the user value acquisition information file is not the second preset format, mark the user value acquisition information file as a second abnormal user value acquisition information file, and delete the user value acquisition information file in the file cache pool. Here, the words "abnormal format of user value acquisition information" may be added to the user value acquisition information file.

[0049] Optionally, in response to completion of reading of each user value acquisition information included in the user value acquisition information file, the file status of the user value acquisition information file in the file cache pool is changed to a read completion status.

[0050] In some embodiments, the execution subject may change the file status of the user value acquisition information file in the file cache pool to a read completion status in response to completion of reading of each user value acquisition information included in the user value acquisition information file.

[0051] Optionally, first abnormal information corresponding to the first abnormal user value acquisition information file is generated, and the first abnormal information is sent to a user terminal corresponding to the first abnormal user value acquisition information file.

[0052] In some embodiments, the execution subject may generate first abnormal information corresponding to the first abnormal user value acquisition information file, and send the first abnormal information to the user terminal corresponding to the first abnormal user value acquisition information file. The first abnormal information may indicate that the user file name of the user value acquisition information file is abnormal.

[0053] Optionally, second abnormal information corresponding to the second abnormal user value acquisition information file is generated, and the second abnormal information is sent to a user terminal corresponding to the second abnormal user value acquisition information file.

[0054] In some embodiments, the execution subject may generate second abnormal information corresponding to the second abnormal user value acquisition information file, and send the second abnormal information to the user end corresponding to the second abnormal user value acquisition information file. The second abnormal information may indicate that the format of the user value acquisition information is abnormal.

[0055] Step 104: Generate a user value acquisition information form group according to each user value acquisition information included in the data cache pool, and store the user value acquisition information form group in the target database.

[0056] In some embodiments, the execution subject may generate a user value acquisition information form group according to each user value acquisition information included in the data cache pool, and store the user value acquisition information form group in a target database. The target database may refer to a local database. The user value acquisition information in each user value acquisition information includes a file identifier. The file identifier may uniquely represent a user value acquisition information file.

[0057] In practice, according to each user value acquisition information included in the above data cache pool, the above execution entity can generate a user value acquisition information form group through the following steps:

[0058] The first step is to read the file identifier of each user value acquisition information file in the above file cache pool that is in the read completion state. The read completion state may indicate that the user value acquisition information included in the user value acquisition information file has been read into the data cache pool.

[0059] The second step is to execute the following generation steps according to each file identifier read:

[0060] In the first sub-step, each user value acquisition information having a file identifier identical to the file identifier in the data cache pool is determined as a candidate user value acquisition information group.

[0061] The second sub-step is to migrate the candidate user value acquisition information group to the target memory. Here, the target memory may be a memory pre-divided for processing the candidate user value acquisition information group.

[0062] The third sub-step is to determine whether the candidate user value acquisition information group in the target memory satisfies the target condition according to each user value acquisition information corresponding to the file identifier stored in the target terminal. The target condition may be: for each candidate user value acquisition information in the candidate user value acquisition information group, there is a user value acquisition information in the target terminal that is the same as the candidate user value acquisition information. The target terminal may refer to the user terminal corresponding to the candidate user value acquisition information group.

[0063] The fourth sub-step, in response to determining that the alternative user value acquisition information group in the above-mentioned target memory meets the above-mentioned target conditions, generates a user value acquisition information form according to the above-mentioned alternative user value acquisition information group. In practice, for each alternative user value acquisition information in the above-mentioned alternative user value acquisition information group, the sum of the value attribute values ​​included in the above-mentioned alternative user value acquisition information is determined as the total value attribute value. Then, the user name, user ID number, user department name included in each alternative user value acquisition information are concatenated with the total value attribute value corresponding to the above-mentioned alternative user value acquisition information to generate user value information. Finally, each user value information can be added to the user value acquisition information empty form to generate a user value acquisition information form. The value attribute value included in the alternative user value acquisition information can refer to each value attribute value (for example, basic salary, bonus) contained in the user's value acquisition information.

[0064] The relevant content in step 104 is an inventive point of the present disclosure, thereby solving the technical problem 3 mentioned in the background technology: "Since the data volume of the user value acquisition information is large, if the user value acquisition information is directly verified, it will occupy more memory of the business system, which is easy to cause the subsequent user value acquisition information upload failure.". The factors that are likely to cause the subsequent user value acquisition information upload failure are often as follows: Since the data volume of the user value acquisition information is large, if the user value acquisition information is directly verified, it will occupy more memory of the business system, which is easy to cause the subsequent user value acquisition information upload failure. If the above factors are solved, the effect of reducing the subsequent user value acquisition information upload failure can be achieved. In order to achieve this effect, first, the file identifier included in the above data cache pool and the user value acquisition information with the same file identifier as the above file identifier are determined as the candidate user value acquisition information group. Thereby, it is convenient to verify the user value acquisition information corresponding to the file identifier in the future. Secondly, the above candidate user value acquisition information group is migrated to the target memory. Thereby, it is avoided to occupy more memory of the data cache pool and avoid the subsequent user value acquisition information upload failure. Next, based on the user value acquisition information corresponding to the above-mentioned file identifier stored in the target terminal, determine whether the alternative user value acquisition information group in the above-mentioned target memory meets the target condition. Thus, the user value acquisition information stored in the target terminal can be used to verify the alternative user value acquisition information group to avoid processing the wrong alternative user value acquisition information group. Finally, in response to determining that the alternative user value acquisition information group in the above-mentioned target memory meets the above-mentioned target condition, a user value acquisition information form is generated according to the above-mentioned alternative user value acquisition information group. Thus, processing of the wrong alternative user value acquisition information group can be avoided. At the same time, migrating the alternative user value acquisition information group to the target memory also alleviates the storage space of the data cache pool and reduces the probability of subsequent failure to upload the user value acquisition information.

[0065] Optionally, the above-mentioned generation step also includes: in response to determining that the alternative user value acquisition information group in the above-mentioned target memory does not meet the above-mentioned target condition, generating abnormal information corresponding to the above-mentioned alternative user value acquisition information group, and sending the above-mentioned abnormal information to the user end corresponding to the above-mentioned alternative user value acquisition information group.

[0066] In some embodiments, the execution subject may generate abnormal information corresponding to the candidate user value acquisition information group in response to determining that the candidate user value acquisition information group in the target memory does not meet the target condition, and send the abnormal information to the user terminal corresponding to the candidate user value acquisition information group. Here, the abnormal information may represent the candidate user value acquisition information in the candidate user value acquisition information group that is not stored in the target terminal.

[0067] Optionally, each piece of user value acquisition information corresponding to the user value acquisition information form in the data cache pool is deleted.

[0068] Optionally, status information corresponding to the user value acquisition information form is generated, and the status information is sent to a user terminal corresponding to the user value acquisition information form.

[0069] In some embodiments, the execution entity may generate status information corresponding to the user value acquisition information form, and send the status information to the user end corresponding to the user value acquisition information form. Here, the status information may indicate that the user value acquisition information file corresponding to the user value acquisition information form has been processed.

[0070] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the information storage method of some embodiments of the present disclosure, the problem of server jamming is alleviated. Specifically, the reason why the server jamming is easy to occur is that when there are many employees in the enterprise, the amount of data uploaded for value acquisition information is large within a preset time period, which easily causes the server jamming. Based on this, the information storage method of some embodiments of the present disclosure, first, in response to receiving a user value acquisition information file submitted by at least one user terminal, according to the submission time corresponding to the user value acquisition information file, each received user value acquisition information file is added to the file transfer pool. Thus, the files uploaded by each user terminal can be temporarily stored in the file transfer pool first to avoid server jamming when multiple files are uploaded at the same time. Then, in response to determining that there is currently an idle file reading thread, the target thread number of user value acquisition information files are read from the above file transfer pool, and the target thread number of user value acquisition information files are added to the file cache pool. Thus, the user value acquisition information files in the file transfer pool can be read according to the number of currently available file reading threads. It is avoided that the user value acquisition information files submitted by the user terminal are read at the same time and occupy too many threads of the server. Then, in response to the file reading node being in operation, the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool is read into the data cache pool. Thus, only the key information (user value acquisition information) included in the user value acquisition information file can be read into the data cache pool to avoid occupying too much memory of the data cache pool. Finally, according to each user value acquisition information included in the above-mentioned data cache pool, a user value acquisition information form group is generated, and the above-mentioned user value acquisition information form group is stored in the target database. Thus, the files uploaded by the user end can be segmented and cached through the file transfer pool and the file cache pool to avoid occupying more threads of the server. Thus, the server jam is alleviated.

[0071] Further references Figure 2As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an information storage device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the system can be specifically applied to various electronic devices.

[0072] like Figure 2 As shown, the information storage device 200 of some embodiments includes: an adding unit 201 , a first reading unit 202 , a second reading unit 203 and a generating unit 204 . The adding unit 201 is configured to, in response to receiving a user value acquisition information file submitted by at least one user terminal, add each received user value acquisition information file to the file transfer pool according to the submission time corresponding to the user value acquisition information file, wherein the user value acquisition information file in the above-mentioned user value acquisition information file corresponds to the user terminal in the above-mentioned at least one user terminal; the first reading unit 202 is configured to, in response to determining that there is currently an idle file reading thread, read the target thread number of user value acquisition information files from the above-mentioned file transfer pool, and add the above-mentioned marked linear number of user value acquisition information files to the file cache pool, wherein the above-mentioned target thread number is: the number of file reading threads in the idle state; the second reading unit 203 is configured to, in response to the file reading node being in the running state, read the user value acquisition information included in each user value acquisition information file in the above-mentioned file cache pool into the data cache pool; the generating unit 204 is configured to generate a user value acquisition information form group according to each user value acquisition information included in the above-mentioned data cache pool, and store the above-mentioned user value acquisition information form group in the target database.

[0073] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.

[0074] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 300 (e.g., a computing device) suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0075] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0076] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0077] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0078] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0079] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0080] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to receiving a user value acquisition information file submitted by at least one user terminal, according to the submission time corresponding to the user value acquisition information file, adds each received user value acquisition information file to a file transfer pool, wherein the user value acquisition information file in each user value acquisition information file corresponds to a user terminal in the at least one user terminal; in response to determining that there are currently idle file reading threads, reads a target number of user value acquisition information files from the file transfer pool, and adds the target number of user value acquisition information files to a file cache pool, wherein the target number of threads is: the number of file reading threads in an idle state; in response to the file reading node being in a running state, reads the user value acquisition information included in each user value acquisition information file in the file cache pool into a data cache pool; generates a user value acquisition information form group according to each user value acquisition information included in the data cache pool, and stores the user value acquisition information form group in a target database.

[0081] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0082] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0083] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising an adding unit, a first reading unit, a second reading unit, and a generating unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances, for example, the adding unit may also be described as "a unit that, in response to receiving a user value acquisition information file submitted by at least one user terminal, adds each received user value acquisition information file to the file transfer pool according to the submission time corresponding to the user value acquisition information file".

[0084] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0085] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. An information storage method, comprising: In response to receiving a user value acquisition information file submitted by at least one user terminal, adding each received user value acquisition information file to a file transfer pool according to the submission time corresponding to the user value acquisition information file, wherein the user value acquisition information file in each user value acquisition information file corresponds to a user terminal in the at least one user terminal, and the user value acquisition information file in each user value acquisition information file includes a user file name and a file identifier; In response to determining that there are currently idle file reading threads, a target number of threads user value acquisition information files are read from the file transfer pool, and the target number of threads user value acquisition information files are added to the file cache pool, wherein the target number of threads is: the number of file reading threads in the idle state; In response to the file reading node being in a running state, reading the user value acquisition information included in each user value acquisition information file in the file cache pool into the data cache pool; Generate a user value acquisition information form group according to each user value acquisition information included in the data cache pool, and store the user value acquisition information form group in a target database; The step of reading the user value acquisition information included in each user value acquisition information file in the file cache pool into the data cache pool includes: For each user value acquisition information file in the file cache pool, the following processing steps are performed: Determining whether the format of the user file name included in the user value acquisition information file is a first preset format; In response to determining that the format of the user file name included in the user value acquisition information file is the first preset format, determining whether the format of each user value acquisition information included in the user value acquisition information file is a second preset format; In response to determining that the format of each piece of user value acquisition information included in the user value acquisition information file is the second preset format, reading each piece of user value acquisition information included in the user value acquisition information file into the data cache pool according to a preset read field name group; In response to determining that the format of the user file name included in the user value acquisition information file is not the first preset format, marking the user value acquisition information file as a first abnormal user value acquisition information file, and deleting the user value acquisition information file in the file cache pool; In response to determining that the format of each user value acquisition information included in the user value acquisition information file is not the second preset format, marking the user value acquisition information file as a second abnormal user value acquisition information file, and deleting the user value acquisition information file in the file cache pool; In response to completion of reading of each user value acquisition information included in the user value acquisition information file, setting the file status of the user value acquisition information file in the file cache pool to a read completion status; generating first abnormal information corresponding to the first abnormal user value acquisition information file, and sending the first abnormal information to a user terminal corresponding to the first abnormal user value acquisition information file; generating second abnormal information corresponding to the second abnormal user value acquisition information file, and sending the second abnormal information to a user terminal corresponding to the second abnormal user value acquisition information file; The step of generating a user value acquisition information form group according to each user value acquisition information included in the data cache pool includes: Read the file identifier of each user value acquisition information file in the file cache pool that is in a read completion state; For each file identifier read, the following generation steps are performed: Determine each piece of user value acquisition information in the data cache pool that has the same file identifier as the file identifier as a candidate user value acquisition information group; Migrating the candidate user value acquisition information group to the target memory; Determine whether the candidate user value acquisition information group in the target memory meets the target condition according to each user value acquisition information corresponding to the file identifier stored in the target terminal; In response to determining that the candidate user value acquisition information group in the target memory meets the target condition, generating a user value acquisition information form according to the candidate user value acquisition information group; In response to determining that the candidate user value acquisition information group in the target memory does not meet the target condition, generating abnormal information corresponding to the candidate user value acquisition information group, and sending the abnormal information to the user end corresponding to the candidate user value acquisition information group; Deleting each user value acquisition information corresponding to the user value acquisition information form in the data cache pool; Generate status information corresponding to the user value acquisition information form, and send the status information to the user end corresponding to the user value acquisition information form.

2. An information storage device, applied to the method according to claim 1, comprising: an adding unit, configured to, in response to receiving a user value acquisition information file submitted by at least one user terminal, add each received user value acquisition information file to the file transfer pool according to the submission time corresponding to the user value acquisition information file, wherein the user value acquisition information file in each user value acquisition information file corresponds to a user terminal in the at least one user terminal; The first reading unit is configured to, in response to determining that there is currently an idle file reading thread, read a target number of user value acquisition information files from the file transfer pool, and add the target number of user value acquisition information files to the file cache pool, wherein the target number of threads is: the number of file reading threads in the idle state; A second reading unit is configured to read the user value acquisition information included in each user value acquisition information file in the file cache pool into the data cache pool in response to the file reading node being in a running state; The generating unit is configured to generate a user value acquisition information form group according to each user value acquisition information included in the data cache pool, and store the user value acquisition information form group in the target database.

3. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.

4. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to claim 1 is implemented.