CN109241084A - Querying method, terminal device and the medium of data - Google Patents
Querying method, terminal device and the medium of data Download PDFInfo
- Publication number
- CN109241084A CN109241084A CN201811080892.5A CN201811080892A CN109241084A CN 109241084 A CN109241084 A CN 109241084A CN 201811080892 A CN201811080892 A CN 201811080892A CN 109241084 A CN109241084 A CN 109241084A
- Authority
- CN
- China
- Prior art keywords
- data
- information
- promotion
- promotion data
- pending object
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000001514 detection method Methods 0.000 claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 17
- 230000001360 synchronised effect Effects 0.000 claims description 20
- 230000005540 biological transmission Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 13
- 238000012550 audit Methods 0.000 claims description 7
- 230000001737 promoting effect Effects 0.000 abstract description 13
- 230000000694 effects Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 108010001267 Protein Subunits Proteins 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 241000406668 Loxodonta cyclotis Species 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000029058 respiratory gaseous exchange Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/105—Human resources
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Operations Research (AREA)
- Economics (AREA)
- Marketing (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention is suitable for technical field of data processing, provides the querying method, terminal device and medium of a kind of data, this method comprises: obtaining the characteristic of each pending object;Within a preset period of time, characteristic is analyzed and processed, obtains promotion data of each pending object in each detection, and store data are promoted to first information library;The sum of received promotion data inquiry request is less than preset threshold in preset time period;The promotion data inquiry request of user's input is obtained, data inquiry request is promoted and carries the identifier for pending object described in unique identification;In first information library, promotion data corresponding with identifier are inquired, and obtained promotion data are returned.The present invention need not calculate the promotion data checked needed for user in real time, therefore achieve the effect that asynchronous process, calculating of avoiding the peak hour promote data, to decrease the frequency of data processing, improve the acquisition efficiency and search efficiency for promoting data.
Description
Technical field
The invention belongs to technical field of data processing more particularly to a kind of querying methods of data, terminal device and calculating
Machine readable storage medium storing program for executing.
Background technique
In order to guarantee that work in every can execute without any confusion, enterprises usually all divide the duty for having different levels
Position, enabling each employee, Each performs its own functions in its position, convenient for management.With the continuous promotion of employee's ability, employee can be by
The position of lower-level rises to the position of higher levels, the process, that is, promotion process.Promotion process needs the items to employee
Working index data are examined, and therefore, in order to improve examination efficiency, current each large enterprises all start online employee and promote system
System.Employee promotes system and is used to carry out examination & approval by after indices data acquisition for auditor and check, thereby ensure that and connecing
When receiving data inquiry request, the Shanxi checked needed for pending personnel can be generated in real time based on the achievement data included in advance
Data are risen, can more intuitively understand the exhibition industry achievement of this department and all employees of subunit, and then commented
Estimate whether employee has promotion qualification.
However, the data volume that promotion system database is stored will be very huge when enterprise staff number is excessive, because
And the search speed for resulting in achievement data is more slow.Since auditor is when inquiring the promotion data of employee, Zhi Nengxian
After real-time searching goes out matched achievement data in the database of magnanimity, the data that attain promotion can be just further calculated, thus
Existing data query method also reduces the search efficiency for promoting data.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of querying method of data, terminal device and computer-readable depositing
It is more low to there is efficiency data query when inquiring the promotion data of employee to solve auditor in the prior art for storage media
Under problem.
The first aspect of the embodiment of the present invention provides a kind of querying method of data, comprising:
Obtain the characteristic of each pending object;
Within a preset period of time, the characteristic is analyzed and processed, obtains each described pending object and exists
Promotion data in each detection, and the promotion data are stored to first information library;Wherein, the promotion data be
The reference data checked needed in audit user procedures, received promotion data inquiry request in the preset time period
Sum is less than the first preset threshold;
The promotion data inquiry request of user's input is obtained, the promotion data inquiry request is carried for unique identification
The identifier of the pending object;
In the first information library, corresponding with identifier promotion data are inquired, and described in obtaining
Data are promoted to return.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit
Reservoir is stored with the computer program that can be run on the processor, and the processor is realized when executing the computer program
Following steps:
Obtain the characteristic of each pending object;
Within a preset period of time, the characteristic is analyzed and processed, obtains each described pending object and exists
Promotion data in each detection, and the promotion data are stored to first information library;Wherein, the promotion data be
The reference data checked needed in audit user procedures, received promotion data inquiry request in the preset time period
Sum is less than the first preset threshold;
The promotion data inquiry request of user's input is obtained, the promotion data inquiry request is carried for unique identification
The identifier of the pending object;
In the first information library, corresponding with identifier promotion data are inquired, and described in obtaining
Data are promoted to return.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Obtain the characteristic of each pending object;
Within a preset period of time, the characteristic is analyzed and processed, obtains each described pending object and exists
Promotion data in each detection, and the promotion data are stored to first information library;Wherein, the promotion data be
The reference data checked needed in audit user procedures, received promotion data inquiry request in the preset time period
Sum is less than the first preset threshold;
The promotion data inquiry request of user's input is obtained, the promotion data inquiry request is carried for unique identification
The identifier of the pending object;
In the first information library, corresponding with identifier promotion data are inquired, and described in obtaining
Data are promoted to return.
In the embodiment of the present invention, since the sum of promotion data inquiry request received in preset time period is less,
Therefore the period is the low peak period of data access.By in the low peak period of data access, in advance to the items of pending object
Characteristic is analyzed and processed, and obtained promotion data are stored to information bank, ensure that receive promote data look into
When asking request, promotion system can be screened rapidly from the lesser objective result concentration of data volume, and will be qualified
It promotes data and is back to request user, thus avoid being required every time according to the original characteristic of pending object come in real time
The promotion data checked needed for user are calculated, therefore have achieved the effect that asynchronous process, calculating of avoiding the peak hour promote data, to also reduce
The frequency of data processing improves the acquisition efficiency and search efficiency for promoting data.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the querying method of data provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the querying method S102 of data provided in an embodiment of the present invention;
Fig. 3 is the specific implementation flow chart of the querying method S103 of data provided in an embodiment of the present invention;
Fig. 4 is the specific implementation flow chart of the querying method S1034 of data provided in an embodiment of the present invention;
Fig. 5 is another specific implementation flow chart of the querying method S103 of data provided in an embodiment of the present invention;
Fig. 6 is the structural block diagram of the inquiry unit of data provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the querying method of data provided in an embodiment of the present invention, and this method process includes step
Rapid S101 to S104.The specific implementation principle of each step is as follows:
S101: the characteristic of each pending object is obtained.
In the embodiment of the present invention, pending object is that enterprises need to be performed each employee's object for being promoted to examination,
Auditor is employee's object that examination evaluation is carried out to above-mentioned pending object.Characteristic expression is associated with pending object
Achievement data, the associated each exhibition industry project of including but not limited to pending object, target completion value, actually accomplish value and
Every personal attribute information etc..Each single item characteristic is by the preparatory typing of system manager, alternatively, each by what is docked in advance
Operation system, which uploads, to be obtained.
S102: within a preset period of time, being analyzed and processed the characteristic, and it is described pending right to obtain each
It stores as the promotion data in each detection, and by the promotion data to first information library.Wherein, the promotion data
For the reference data checked needed in audit user procedures, received promotion data query is asked in the preset time period
The sum asked is less than the first preset threshold.
Since auditor to pending object when carrying out promoting examination, often only need to check that pending object is referring to
Corresponding attribute value in fixed each detection, to judge whether pending object meets promotion item according to these attribute values
Part, therefore, in the embodiment of the present invention, for each pending object, by preset algorithm, in advance to the pending object
Characteristic be analyzed and processed, to obtain promotion data of the pending object in above-mentioned specified each detection.Its
In, promote the items attribute value checked needed for data, that is, auditor.Obtained promotion data are stored to pre-establishing
First information library in.
For example, the characteristics such as value and target completion value can be actually accomplished in technical routine according to pending object
According to the target for calculating pending object completes coefficient, and target completion coefficient is stored into first information library.
In the embodiment of the present invention, only when present system time belongs within preset time period, just triggering is about characteristic
According to data processing event.
Optionally, above-mentioned preset time period is instructed according to the setting of the customized input of system manager to determine.
Optionally, the preset time cycle is divided into multiple periods, according to Shanxi received in each period
The history number for rising data inquiry request, determines the history number least period, which is determined as needing to trigger
The preset time period of data processing event.
Optionally, the preset time cycle is divided into multiple periods, according to Shanxi received in each period
The history number for rising data inquiry request determines that history number is less than the period of preset threshold, which is determined as
Need the preset time period of trigger data processing event.
S103: obtaining the promotion data inquiry request of user's input, and the promotion data inquiry request is carried for only
The identifier of the one mark pending object.
In the embodiment of the present invention, operation system or local preset interactive interface by long range dock receive user
The promotion data inquiry request of sending.Wherein, it is pending for checking needed for request user to promote data inquiry request
The promotion data of object, and promote the identifier that data inquiry request carries the pending object for unique identification.It is above-mentioned
Identifier for example can be user name and employee number of pending object etc..
S104: in the first information library, inquiring corresponding with identifier promotion data, and will obtain
The promotion data return.
In the embodiment of the present invention, extracts and promotes identifier entrained by data inquiry request, and in first information library,
Find out data record corresponding with the identifier.By reading the promotion data being contained in data record, by the Shanxi
Data output is risen to promote query result corresponding to data inquiry request, and the query result is back to user, is thus protected
Having demonstrate,proved user can view and the associated indices data of pending object.
In the embodiment of the present invention, since the sum of promotion data inquiry request received in preset time period is less,
Therefore the period is the low peak period of data access.By in the low peak period of data access, in advance to the items of pending object
Characteristic is analyzed and processed, and obtained promotion data are stored to information bank, ensure that receive promote data look into
When asking request, promotion system can be screened rapidly from the lesser objective result concentration of data volume, and will be qualified
It promotes data and is back to request user, thus avoid being required every time according to the original characteristic of pending object come in real time
The promotion data checked needed for user are calculated, therefore have achieved the effect that asynchronous process, calculating of avoiding the peak hour promote data, to also reduce
The frequency of data processing improves the acquisition efficiency and search efficiency for promoting data.
As an embodiment of the present invention, Fig. 2 shows the querying method S102 of data provided in an embodiment of the present invention
Specific implementation flow, details are as follows:
S1021: the attribute information of each pending object is obtained, the attribute information includes department's information and ground
Area's information.
Pending object has its corresponding department's information and regional information.Regional information indicates belonging to pending object
A compass of competency.For example, if department belonging to pending object A is the Finance Department under the branch of Wuhan, area
Information is Wuhan region.Wherein, above-mentioned department's information and regional information are referred to as the attribute information of pending object.
The attribute information of each pending object is by the preparatory typing of administrative staff.Preferably, administrative staff are being received
After department's information of the pending object of institute's typing, according to preset department and the corresponding relationship in area, it can automatically determine out
The regional information of pending object.
S1022: by the promotion data associated by the pending object store to its attribute information matched
In one information bank.
In the embodiment of the present invention, an information bank is respectively created for each department in each area.Through the above steps
After S1021 determines department's information and the regional information of pending object, obtains with this area's information and believe with the department
Cease matched information bank.The promotion of items associated by pending object data are stored in the information bank.
In the embodiment of the present invention, the department as belonging to different employees is different, and each department may be under the jurisdiction of differently
The branch and subsidiaries in area, in most cases, the promotion examination process of this department employee is the area as belonging to the employee and institute
The leader of category department is responsible for investigating, therefore, by calculating promotion data of each employee in each detection, and will
It promotes data to be stored in the corresponding information bank being arranged of the department of this area, ensure that and receiving promotion data inquiry request
When, query result promptly can be read from local information bank, reduce the remote transmission data volume for promoting data, therefore mention
The high search efficiency for promoting data.
As an embodiment of the present invention, Fig. 3 shows the querying method S103 of data provided in an embodiment of the present invention
Specific implementation flow, details are as follows:
S1031: it in the second information bank corresponding with the login account information of the user, judges whether there is and institute
State the corresponding promotion data of identifier.
In the embodiment of the present invention, each user is required to that above-mentioned promotion could be issued after login system based on login account
Data inquiry request.For each login account information, according to department belonging to its user and affiliated area, the determining and portion
Door and with the matched information bank in this area, and the information bank and the corresponding relationship of login account information are stored.In order to
Convenient for distinguishing and refer to conveniently, the information bank to match with the attribute information of pending object is known as first information library, it will be with
The corresponding information bank of account information of request user is known as the second information bank.When issue promote data inquiry request user with
When the pending object inquired needed for the user belongs to same department and areal, above-mentioned first information library and the second information
Library is identical information bank;When the pending object for issuing the user and inquiry needed for the user that promote data inquiry request belongs to
Different departments, alternatively, above-mentioned first information library is different information banks from the second information bank when belonging to different areas, this
When, the second information bank is local information library regional belonging to user.
In the embodiment of the present invention, according to the promotion data inquiry request being currently received, parses the promotion data query and ask
The matched login account information of institute is sought, and determines the second information bank corresponding with the login account information.In second information
In library, promotion data corresponding with identifier entrained by data inquiry request is promoted are judged whether there is.If judging result
Be it is yes, then by the promotion data be back to request user;If judging result be it is no, then follow the steps S1032.
S1032: the promotion data corresponding with the identifier if it does not exist then obtain the promotion data query and ask
Seek associated detection.
If promotion data corresponding with identifier are not present in the second information bank, further parsing is promoted data query and is asked
Seek associated detection.Specifically, by reading the preset flag bit promoted in data inquiry request, the flag bit is obtained
The value of information.According to the preset value of information and the contrast relationship table of detection, it may be determined that go out the promotion data inquiry request and closed
The detection of connection.
S1033: the data magnitude of the promotion data about the detection is obtained.
In the embodiment of the present invention, according to the pending object of identifier institute unique identification, the determining and pending object
The first information library matched.In first information library, searches and promote data about each item of the above-mentioned detection determined.Statistics is looked into
The total amount of data for the promotion data found, and determine data magnitude belonging to the total amount of data.
Illustratively, if the total amount of data for searching obtained promotion data is 50 megabits, and the data volume of each rank
The increment of grade is 1 megabit, and minimum data magnitude is 0, then the corresponding data magnitude of the promotion data can be identified as 50.
S1034: if the data magnitude less than the second preset threshold, by the first information library about the detection
The promotion data of item are synchronized to second information bank.
If detecting obtained data magnitude less than the second preset threshold, then it represents that in first information library, looked into user's request
The associated total amount of data for promoting data of the detection of inquiry is less, therefore, can establish first information library and the second information bank it
Between communication connection after, will be fully synchronized to the second information bank about the promotion data of the detection, to obtain being stored in second
The copy of promotion data in information bank.
Wherein, the setting that the second preset threshold can be issued according to user instructs to determine, can also be according to the second information bank
Residual storage capacity determines.
Preferably, when detecting above-mentioned data magnitude less than the second preset threshold, data synchronous task is created.Only when being
When the system time belongs within preset time period, the data synchronous task is just executed, the promotion data about detection are synchronous
To the second information bank.Wherein, it is pre- to be less than third for the history number of promotion data inquiry request received in preset time period
If threshold value.
S1035: in second information bank, the promotion data corresponding with the identifier are inquired, and will obtain
The promotion data return.
In the second information bank after promoting data and synchronously completing, inquires and promote mark entrained by data inquiry request
Know and accord with corresponding promotion data, and information is back to request user in response by the promotion data.
In the embodiment of the present invention, when receiving promotion data inquiry request, first judge that local belonging to source user is believed
Cease library whether there is user's request promotion data, ensure that promote data there are the case where under, can be preferentially
The data being locally stored are returned, without being loaded from the remote information library in other regions, therefore reduce data
The information content of transmission;In the case where promotion data are not present, by determining the data magnitude of long-range associated promotion data,
When data magnitude is less than preset threshold, which is synchronized to local information library, the system of ensure that will not spend longer
Synchronization time or expend biggish bandwidth for transmission resource;Simultaneously, it is ensured that receiving about same detection next time
When the promotion data inquiry request of item, it can quickly be returned from local information library and promote data, this improves promote data
Search efficiency.
As an embodiment of the present invention, Fig. 4 shows the querying method S1034 of data provided in an embodiment of the present invention
Specific implementation flow, details are as follows:
S10341: according to the pending object associated by the promotion data inquiry request, it is determining with it is described pending
Check the corresponding first information library of the attribute information of elephant.
Mark in the embodiment of the present invention, for data inquiry request received by current time, according to entrained by it
Symbol determines pending object corresponding with the identifier.It is determining to believe with its attribute after the attribute information for reading pending object
The corresponding first information library of manner of breathing.
S10342: the routing table stored according to second information bank determines the first information library and described second
Routing interface between information bank, and the interface bandwidth based on the routing interface, calculate about the first information library and
The information of second information bank transmits consuming value.
It is corresponding with identifier if it does not exist in the second information bank corresponding with the request login account information of user
Promote data, then it represents that promotion data needed for user are present in external first information library, and therefore, it is necessary to based on interconnection
Network obtains long-range promotion data.In the embodiment of the present invention, according to the routing table that the second information bank is stored, load second
(routing iinformation includes subnet address belonging to information bank and routing to routing iinformation between information bank and remaining each information bank
Interface message etc.), and it is screened out from it the routing iinformation with the affiliated sub-network correlation of the second information bank.According to the routing letter filtered out
Breath, determines the routing interface between first information library and the second information bank.
In the embodiment of the present invention, due to each routing interface interface bandwidth can by pre-set program code come
Detection, and interface bandwidth is higher, and the transmission speed of data is faster, therefore, its interface bandwidth is carried out by preset algorithm based on
Calculation processing, the information transmission consuming value about the routing interface is calculated.Above- mentioned information transmission consuming value is every for measuring
The system resource size of required consumption in bit data transmission process.
Illustratively, above-mentioned preset algorithm may include: Cost=108/BandWith.Wherein, Cost is information transmission
Consuming value, BandWith are the interface bandwidth of routing interface.
S10343: obtain with the information transmit the corresponding first default weighted value of consuming value and with the detection pair
The default weighted value of second answered.
In the embodiment of the present invention, the information transmission consuming value of different numerical values reciteds is corresponding with different default weighted values, and
Each different detection is similarly provided with different default weighted values.Therefore, it is transmitted according to the above-mentioned information being calculated
Consuming value determines its corresponding first default weighted value;Detection associated by data inquiry request is promoted according to current, is determined
The second default weighted value corresponding with the detection out.
S10344: if the first default weighted value is less than the described second default weighted value, and the data magnitude is less than
Promotion data in the first information library about the detection are then synchronized to second information by the second preset threshold
Library.
If based on the default weighted value of step S10343 obtained first less than the second default weighted value, and about above-mentioned inspection
The data magnitude of the promotion data of item is surveyed less than the second preset threshold, then triggers the synchronous event for promoting data.The present invention is implemented
In example, the synchronization realization principle for promoting data is identical as the realization principle in above-described embodiment, therefore no longer repeats one by one.
Preferably, if the first default weighted value is greater than or equal to the second default weighted value, the spy of pending object is obtained
Data are levied, and this feature data are analyzed and processed, the promotion data generated in real time are back to request user.
In the embodiment of the present invention, when information transmission consuming value is smaller, corresponding first default weight is also relatively small,
Therefore by, less than the second default weight, and in the lesser situation of data magnitude of promotion data, just being selected in the first default weight
The promotion data stored in directly synchronous second information bank, the simultaneously operating for avoiding data can occupy biggish bandwidth and pass
Defeated resource;By calculating and returning promotion data in real time when the first default weight is greater than or equal to the second default weight, reduce
The synchronous information content of data, therefore improve the flexibility of data query.
As an embodiment of the present invention, Fig. 5 shows the querying method S103 of data provided in an embodiment of the present invention
Another specific implementation flow, details are as follows:
S10346: it in nearest preset duration, judges whether there is historical query corresponding with the pending object and appoints
Business.
In the embodiment of the present invention, when receiving the promotion data inquiry request of user's sending, parses the promotion data and look into
The entrained identifier of request is ask, and is judged in nearest preset duration, if there is the historical query task for matching the identifier.
For example, if the promotion data inquiry request received is used for Shanxi of the request object A in this detection of task completion rate
Data are risen, then are judged in nearest 5 minutes with the presence or absence of the historical query task of the task completion rate about object A.
If detecting historical query task corresponding with pending object in nearest preset duration, the historical query is read
The execution status of task of task.If execution status of task is unfinished state, S10347 is thened follow the steps;If execution status of task
For completion status, S10348 is thened follow the steps.
S10347: historical query task corresponding with the pending object if it exists, and the historical query task
Execution status of task is unfinished state, then to the real-time processing progress of the user feedback.
S10348: historical query task corresponding with the pending object if it exists, and the historical query task
Execution state is completion status, then the implementing result of the historical query task is exported to the promotion number for user request
According to.
In the embodiment of the present invention, the implementing result of each single item historical query task will be recorded storage.Therefore, if detection
To historical query task corresponding with pending object, and the execution state of historical query task is completion status, then reading should
The implementing result of historical query task, and return it to request user.
S10349: historical query task corresponding with the pending object if it does not exist then creates task execution thread,
In the first information library, to inquire the promotion data corresponding with the identifier by the task execution thread,
And the obtained promotion data are returned.
In the embodiment of the present invention, after receiving promotion data inquiry request, first check in system tray whether deposited
The historical query task established in nearest preset duration, if so, the system of expression has had been turned on Shanxi needed for obtaining user
Rise the task of data, it is not necessary to repeat creation task, thus improve the level of resources utilization of system.Under big data scene, lead to
It often completes primary data query needs of promoting to consume a longer time, and during data query, between request and response
In period, system is usually no any feedback, in the embodiment of the present invention, determine historical query task there are the case where
Under, it further checks the execution state of historic task, if it is unfinished state, its real-time processing progress can first be fed back to
User, allows users to the implementation progress of grasp task, improve user experience, avoid user because unknown query processing into
It spends and repeatedly sends again and promote data inquiry request, therefore reduce the probability of occurrence of network congestion problem.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to the querying method of data described in foregoing embodiments, Fig. 6 shows data provided in an embodiment of the present invention
Inquiry unit structural block diagram.For ease of description, only parts related to embodiments of the present invention are shown.
Referring to Fig. 6, which includes:
First acquisition unit 61, for obtaining the characteristic of each pending object.
Analytical unit 62, within a preset period of time, being analyzed and processed to the characteristic, obtaining each institute
Promotion data of the pending object in each detection are stated, and the promotion data are stored to first information library;Wherein, institute
Stating and promoting data is the reference data checked needed in audit user procedures, received promotion in the preset time period
The sum of data inquiry request is less than the first preset threshold.
Second acquisition unit 63, for obtaining the promotion data inquiry request of user's input, the promotion data query is asked
Seek the identifier carried for pending object described in unique identification.
Return unit 64, for inquiring the promotion data corresponding with the identifier in the first information library,
And the obtained promotion data are returned.
Optionally, the analytical unit 62 includes:
First obtains subelement, and for obtaining the attribute information of each pending object, the attribute information includes
Department's information and regional information.
Storing sub-units, for by the promotion data associated by the pending object store to its attribute information
In matched first information library.
Optionally, the return unit 64 includes:
First judgment sub-unit, for sentencing in the second information bank corresponding with the login account information of the user
It is disconnected to whether there is the promotion data corresponding with the identifier.
Second obtains subelement, for the promotion data corresponding with the identifier if it does not exist, then described in acquisition
Promote detection associated by data inquiry request.
Third obtains subelement, for obtaining the data magnitude of the promotion data about the detection.
Synchronous subelement, if for the data magnitude less than the second preset threshold, by the first information library Zhong Guan
Second information bank is synchronized in the promotion data of the detection.
Subelement is inquired, for inquiring the promotion data corresponding with the identifier in second information bank,
And the obtained promotion data are returned.
Optionally, the synchronous subelement is specifically used for:
It is determining and the pending object according to the pending object associated by the promotion data inquiry request
The corresponding first information library of the attribute information;
According to the routing table that second information bank is stored, determine the first information library and second information bank it
Between routing interface, and the interface bandwidth based on the routing interface calculates about the first information library and described second
The information of information bank transmits consuming value;
It obtains and the information transmission consuming corresponding first default weighted value of value and corresponding with the detection the
Two default weighted values;
If the first default weighted value is less than the described second default weighted value, and the data magnitude is default less than second
Promotion data in the first information library about the detection are then synchronized to second information bank by threshold value.
Optionally, the return unit 64 includes:
Second judgment sub-unit, for judging whether there is corresponding with the pending object in nearest preset duration
Historical query task.
Subelement is fed back, for historical query task corresponding with the pending object if it exists, and the history is looked into
The execution status of task of inquiry task is unfinished state, then to the real-time processing progress of the user feedback.
Subelement is exported, for historical query task corresponding with the pending object if it exists, and the history is looked into
The execution state of inquiry task is completion status, then the implementing result of the historical query task is exported to the institute for user request
State promotion data.
Subelement is created, for historical query task corresponding with the pending object if it does not exist, then creates task
Execution thread, in the first information library, to inquire corresponding with the identifier described by the task execution thread
Data are promoted, and the obtained promotion data are returned.
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set
Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70
Calculation machine program 72, such as the polling routine of data.The processor 70 is realized above-mentioned each when executing the computer program 72
Step in the querying method embodiment of data, such as step 101 shown in FIG. 1 is to 104.Alternatively, the processor 70 executes
Realize the function of each module/unit in above-mentioned each Installation practice when the computer program 72, for example, unit 61 shown in Fig. 6 to
64 function.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7
The only example of terminal device 7 does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7
It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of querying method of data characterized by comprising
Obtain the characteristic of each pending object;
Within a preset period of time, the characteristic is analyzed and processed, obtains each described pending object each
Promotion data in detection, and the promotion data are stored to first information library;Wherein, the promotion data are to audit
The reference data checked needed in user procedures, the sum of received promotion data inquiry request in the preset time period
Less than the first preset threshold;
The promotion data inquiry request of user's input is obtained, the promotion data inquiry request is carried for described in unique identification
The identifier of pending object;
In the first information library, the promotion data corresponding with the identifier, and the promotion that will be obtained are inquired
Data return.
2. the querying method of data as described in claim 1, which is characterized in that it is described within a preset period of time, to the spy
Sign data are analyzed and processed, and obtain each the promotion data of the pending object in each detection, and will be described
Data are promoted to store to first information library, comprising:
The attribute information of each pending object is obtained, the attribute information includes department's information and regional information;
By the promotion data associated by the pending object store to in the matched first information library of its attribute information.
3. the querying method of data as described in claim 1, which is characterized in that described in the first information library, inquiry
The promotion data corresponding with the identifier, and the obtained promotion data are returned, comprising:
In the second information bank corresponding with the login account information of the user, judge whether there is and the identifier pair
The promotion data answered;
The promotion data corresponding with the identifier if it does not exist then obtain associated by the promotion data inquiry request
Detection;
Obtain the data magnitude of the promotion data about the detection;
If the data magnitude is less than the second preset threshold, by the promotion number in the first information library about the detection
According to being synchronized to second information bank;
In second information bank, the promotion data corresponding with the identifier, and the promotion that will be obtained are inquired
Data return.
4. the querying method of data as claimed in claim 3, which is characterized in that if the data magnitude is pre- less than second
If threshold value, then the promotion data in the first information library about the detection are synchronized to second information bank, comprising:
It is determining described with the pending object according to the pending object associated by the promotion data inquiry request
The corresponding first information library of attribute information;
According to the routing table that second information bank is stored, determine between the first information library and second information bank
Routing interface, and the interface bandwidth based on the routing interface are calculated about the first information library and second information
The information in library transmits consuming value;
It obtains and information transmission consuming is worth corresponding first default weighted value and corresponding with the detection second in advance
If weighted value;
If the first default weighted value is less than the described second default weighted value, and the data magnitude is less than the second default threshold
Value, then be synchronized to second information bank for the promotion data in the first information library about the detection.
5. the querying method of data as described in claim 1, which is characterized in that described in the first information library, inquiry
The promotion data corresponding with the identifier, and the obtained promotion data are returned, comprising:
In nearest preset duration, historical query task corresponding with the pending object is judged whether there is;
Historical query task corresponding with the pending object if it exists, and the execution status of task of the historical query task
For unfinished state, then to the real-time processing progress of the user feedback;
Historical query task corresponding with the pending object if it exists, and the execution state of the historical query task has been
At state, then the implementing result of the historical query task is exported to the promotion data for user request;
Historical query task corresponding with the pending object if it does not exist, then create task execution thread, by described
Task execution thread inquires corresponding with identifier promotion data in the first information library, and will obtain
The promotion data return.
6. a kind of terminal device, including memory and processor, the memory, which is stored with, to be run on the processor
Computer program, which is characterized in that the processor realizes following steps when executing the computer program:
Obtain the characteristic of each pending object;
Within a preset period of time, the characteristic is analyzed and processed, obtains each described pending object each
Promotion data in detection, and the promotion data are stored to first information library;Wherein, the promotion data are to audit
The reference data checked needed in user procedures, the sum of received promotion data inquiry request in the preset time period
Less than the first preset threshold;
The promotion data inquiry request of user's input is obtained, the promotion data inquiry request is carried for described in unique identification
The identifier of pending object;
In the first information library, the promotion data corresponding with the identifier, and the promotion that will be obtained are inquired
Data return.
7. terminal device as claimed in claim 6, which is characterized in that it is described within a preset period of time, to the characteristic
It is analyzed and processed, obtains each the promotion data of the pending object in each detection, and by the promotion number
According to storing to first information library, comprising:
The attribute information of each pending object is obtained, the attribute information includes department's information and regional information;
By the promotion data associated by the pending object store to in the matched first information library of its attribute information.
8. terminal device as claimed in claim 6, which is characterized in that it is described in the first information library, inquiry with it is described
The corresponding promotion data of identifier, and the obtained promotion data are returned, comprising:
In the second information bank corresponding with the login account information of the user, judge whether there is and the identifier pair
The promotion data answered;
The promotion data corresponding with the identifier if it does not exist then obtain associated by the promotion data inquiry request
Detection;
Obtain the data magnitude of the promotion data about the detection;
If the data magnitude is less than the second preset threshold, by the promotion number in the first information library about the detection
According to being synchronized to second information bank;
In second information bank, the promotion data corresponding with the identifier, and the promotion that will be obtained are inquired
Data return.
9. terminal device as claimed in claim 8, which is characterized in that if the data magnitude is less than the second default threshold
Value, then be synchronized to second information bank for the promotion data in the first information library about the detection, comprising:
It is determining described with the pending object according to the pending object associated by the promotion data inquiry request
The corresponding first information library of attribute information;
According to the routing table that second information bank is stored, determine between the first information library and second information bank
Routing interface, and the interface bandwidth based on the routing interface are calculated about the first information library and second information
The information in library transmits consuming value;
It obtains and information transmission consuming is worth corresponding first default weighted value and corresponding with the detection second in advance
If weighted value;
If the first default weighted value is less than the described second default weighted value, and the data magnitude is less than the second default threshold
Value, then be synchronized to second information bank for the promotion data in the first information library about the detection.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811080892.5A CN109241084B (en) | 2018-09-17 | 2018-09-17 | Data query method, terminal equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811080892.5A CN109241084B (en) | 2018-09-17 | 2018-09-17 | Data query method, terminal equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109241084A true CN109241084A (en) | 2019-01-18 |
CN109241084B CN109241084B (en) | 2024-05-07 |
Family
ID=65059553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811080892.5A Active CN109241084B (en) | 2018-09-17 | 2018-09-17 | Data query method, terminal equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109241084B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213357A (en) * | 2019-05-22 | 2019-09-06 | 深圳壹账通智能科技有限公司 | Business datum backing method, device, computer equipment and storage medium |
CN111554367A (en) * | 2020-04-26 | 2020-08-18 | 贵州精准健康数据有限公司 | Data processing method and device and computer readable medium |
CN112015674A (en) * | 2020-08-27 | 2020-12-01 | 平安科技(深圳)有限公司 | Cache resource access method and device based on multiple hierarchies and computer equipment |
CN112860771A (en) * | 2019-11-28 | 2021-05-28 | 泰康保险集团股份有限公司 | Architecture difference acquisition method and system |
CN113553372A (en) * | 2020-04-26 | 2021-10-26 | 北京沃东天骏信息技术有限公司 | Writing method and device for database, computing equipment and medium |
CN114443714A (en) * | 2022-01-21 | 2022-05-06 | 北京达佳互联信息技术有限公司 | Data query method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516920A (en) * | 2013-10-08 | 2015-04-15 | 北大方正集团有限公司 | Data inquiry method and data inquiry system |
US20180121292A1 (en) * | 2016-11-02 | 2018-05-03 | Mastercard International Incorporated | Systems and methods for database management |
CN108335078A (en) * | 2017-08-03 | 2018-07-27 | 平安普惠企业管理有限公司 | Referrer promotes control method, device, equipment and storage medium |
CN108491450A (en) * | 2018-02-26 | 2018-09-04 | 平安普惠企业管理有限公司 | Data cache method, device, server and storage medium |
-
2018
- 2018-09-17 CN CN201811080892.5A patent/CN109241084B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516920A (en) * | 2013-10-08 | 2015-04-15 | 北大方正集团有限公司 | Data inquiry method and data inquiry system |
US20180121292A1 (en) * | 2016-11-02 | 2018-05-03 | Mastercard International Incorporated | Systems and methods for database management |
CN108335078A (en) * | 2017-08-03 | 2018-07-27 | 平安普惠企业管理有限公司 | Referrer promotes control method, device, equipment and storage medium |
CN108491450A (en) * | 2018-02-26 | 2018-09-04 | 平安普惠企业管理有限公司 | Data cache method, device, server and storage medium |
Non-Patent Citations (1)
Title |
---|
涂波;张炜;胡文;张健伟;冯媛媛;: "基于决策树C5.0算法的员工职称晋级评估研究", 中国管理信息化, no. 08, pages 65 - 66 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213357A (en) * | 2019-05-22 | 2019-09-06 | 深圳壹账通智能科技有限公司 | Business datum backing method, device, computer equipment and storage medium |
CN112860771A (en) * | 2019-11-28 | 2021-05-28 | 泰康保险集团股份有限公司 | Architecture difference acquisition method and system |
CN111554367A (en) * | 2020-04-26 | 2020-08-18 | 贵州精准健康数据有限公司 | Data processing method and device and computer readable medium |
CN113553372A (en) * | 2020-04-26 | 2021-10-26 | 北京沃东天骏信息技术有限公司 | Writing method and device for database, computing equipment and medium |
CN111554367B (en) * | 2020-04-26 | 2023-05-30 | 贵州精准健康数据有限公司 | Data processing method, device and computer readable medium |
CN112015674A (en) * | 2020-08-27 | 2020-12-01 | 平安科技(深圳)有限公司 | Cache resource access method and device based on multiple hierarchies and computer equipment |
CN112015674B (en) * | 2020-08-27 | 2023-05-30 | 平安科技(深圳)有限公司 | Multi-level-based cache resource access method and device and computer equipment |
CN114443714A (en) * | 2022-01-21 | 2022-05-06 | 北京达佳互联信息技术有限公司 | Data query method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109241084B (en) | 2024-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109241084A (en) | Querying method, terminal device and the medium of data | |
CN106020715B (en) | Storage pool capacity management | |
KR101939554B1 (en) | Determining a temporary transaction limit | |
WO2011134086A1 (en) | Systems and methods for conducting reliable assessments with connectivity information | |
CN111079015A (en) | Recommendation method and device, computer equipment and storage medium | |
CN108920948A (en) | A kind of anti-fraud streaming computing device and method | |
CN109478147A (en) | Adaptive resource management in distributed computing system | |
CN106407244A (en) | Multi-database-based data query method, system and apparatus | |
CN104618304B (en) | Data processing method and data handling system | |
US20130325861A1 (en) | Data Clustering for Multi-Layer Social Link Analysis | |
CN106095575B (en) | A kind of devices, systems, and methods of log audit | |
CN110201393A (en) | Configuration data storage method and device and electronic equipment | |
CN110348771A (en) | The method and apparatus that a kind of pair of order carries out group list | |
CN110147657A (en) | A kind of user right configuration method and device | |
CN105786810B (en) | The method for building up and device of classification mapping relations | |
CN109711849B (en) | Ether house address portrait generation method and device, electronic equipment and storage medium | |
CN110245684A (en) | Data processing method, electronic equipment and medium | |
CN111368060B (en) | Self-learning method, device and system for conversation robot, electronic equipment and medium | |
CN109902698A (en) | Information generating method and device | |
CN113760521A (en) | Virtual resource allocation method and device | |
CN106651183A (en) | Communication data security audit method and device for industrial control system | |
CN108076112A (en) | A kind of host dispatching method and device | |
CN114048512B (en) | Method and device for processing sensitive data | |
CN115168509A (en) | Processing method and device of wind control data, storage medium and computer equipment | |
US10832419B2 (en) | Cognitive search analytics for multi-dimensional objects |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |