CN104932884A - Method and device for increasing idle time calculation efficiency of big data statistics - Google Patents

Method and device for increasing idle time calculation efficiency of big data statistics Download PDF

Info

Publication number
CN104932884A
CN104932884A CN201510317841.XA CN201510317841A CN104932884A CN 104932884 A CN104932884 A CN 104932884A CN 201510317841 A CN201510317841 A CN 201510317841A CN 104932884 A CN104932884 A CN 104932884A
Authority
CN
China
Prior art keywords
idle
wall scroll
renewal
described wall
scroll record
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.)
Pending
Application number
CN201510317841.XA
Other languages
Chinese (zh)
Inventor
倪秉炬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510317841.XA priority Critical patent/CN104932884A/en
Publication of CN104932884A publication Critical patent/CN104932884A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and device for increasing the idle time calculation efficiency of big data statistics, and belongs to the technical field of communication. The method comprises the following steps: splitting each sub-table in a database needing idle time calculation into a plurality of single records, wherein the single records include update identification fields; starting an idle time calculation task, and judging whether or not the single records are updated through the update identification fields; and if the update is finished, performing idle time calculation on the single records, and generating an idle time report form according to the result of the idle calculation. Data in the database sub-tables is further subdivided into the single records, so that data needing to be calculated by a real-time calculator is a least possible value; the flexibility and efficiency of the idle time calculation are improved; and the aims of increasing the use efficiency of a server and improving the user experience are fulfilled.

Description

A kind of method and device improving large data statistics idle counting yield
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and the device that improve large data statistics idle counting yield.
Background technology
FOTA (Firmware Over The Air) is a kind of wireless phone upgrade software, and the large data statistics scheme of FOTA operation note introduces large data fields at present and uses more idle to calculate, but also there is more problem.
The data volume size of individual submeter and coupling degree computing time of single idle task higher, data volume is large, computing time just for a long time, if individual amount is little, the submeter quantity generated can be too many, the burden of middleware will be too large, if individual amount is large, the computing time of Time-critical tasks is of a specified duration, and the data volume being in that submeter of the state of writing also can be in a higher value, so, user is when carrying out statistical operation, just run into the situation that idle task has not also calculated possibly, even without running into this situation, also the larger situation of state submeter data volume is write in the face of being in possibly, the time of the hybrid operation so expected will be more of a specified duration, the Consumer's Experience brought is not good, take submeter as elementary cell, idle task must wait until that submeter could run after completing write operation, and the true running frequency of idle task will be in a lower value, and efficiency is very low, due to the feature of business demand, download when user clicks upgrading,, a upgrading record write into Databasce, then user is waited to complete download action, system can carry out readjustment action, the record of write into Databasce is before carried out to the renewal of the fields such as download state, this upgrade required for time relevant with the time that user completes download, possibility is fast also may be slow, such submeter just needs a uncertain time from writing all data to being switched to a read states, and idle task needs to wait for this uncertain time, be again a reduction to efficiency.
Summary of the invention
Fundamental purpose of the present invention is to propose a kind of method and the device that improve large data statistics idle counting yield, wall scroll record is changed into from submeter by fundamental unit idle calculated, improve the efficiency that idle calculates, reach the service efficiency improving server, improve the object of Consumer's Experience.
The technical scheme that the present invention solves the problems of the technologies described above is as follows:
According to an aspect of the present invention, a kind of method improving large data statistics idle counting yield provided, comprising:
By needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, in described wall scroll record, comprise renewal identification field;
Start idle calculation task, judge whether described wall scroll record completes renewal by described renewal identification field;
If complete renewal, then idle calculating is carried out to described wall scroll record, and result idle calculated generates idle form.
Preferably, in described wall scroll record, also comprise idle report generation field, in order to represent whether described wall scroll record has completed idle and calculated, and generate idle form.
Preferably, completes renewal if described, then idle calculating is carried out to described wall scroll record, and result idle calculated also comprises after generating idle form:
The value of the idle report generation field of described wall scroll record is set to true.
Preferably, described renewal identification field is the isWritable field of Boolean type.
Preferably, by described renewal identification field, described startup idle calculation task, judges whether described wall scroll record has completed renewal and comprised:
Start idle calculation task;
Whether the value judging described renewal identification field is true, if then represent that described wall scroll record upgrades;
If the value of described renewal identification field is false, then represent that described wall scroll record completes renewal.
As another aspect of the present invention, a kind of device improving large data statistics idle counting yield provided, comprising:
Splitting module, for by needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, in described wall scroll record, comprising renewal identification field;
By described renewal identification field, judge module, after starting idle calculation task, judges whether described wall scroll record completes renewal;
Idle computing module, after completing renewal, then carries out idle calculating to described wall scroll record, and result idle calculated generates idle form.
Preferably, in described wall scroll record, also comprise idle report generation field, in order to represent whether described wall scroll record has completed idle and calculated, and generate idle form.
Preferably, also comprise:
Idle report generation module, the value for the idle report generation field by described wall scroll record is set to true.
Preferably, described renewal identification field is the isWritable field of Boolean type.
Preferably, described judge module comprises:
Task start unit, for starting idle calculation task;
Upgrade judging unit, for judging whether the value of described renewal identification field is true, if then represent that described wall scroll record upgrades; If the value of described renewal identification field is false, then represent that described wall scroll record completes renewal.
The invention provides a kind of method and the device that improve large data statistics idle counting yield, the method comprises: by needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, comprise renewal identification field in described wall scroll record; Start idle calculation task, judge whether described wall scroll record completes renewal by described renewal identification field; If complete renewal, then idle calculating is carried out to described wall scroll record, and result idle calculated generates idle form, the present invention is by carrying out again being subdivided into wall scroll record by the data in database submeter, the required data calculated of real time computer are made to be little as far as possible values, improve dirigibility and the efficiency of idle calculating, reach the service efficiency improving server, improve the object of Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of process flow diagram improving the method for large data statistics idle counting yield of embodiments of the invention one;
Fig. 4 is a kind of process flow diagram improving the method for large data statistics idle counting yield of embodiments of the invention two;
Fig. 5 is a kind of process flow diagram improving the method for large data statistics idle counting yield of embodiments of the invention three;
Fig. 6 is a kind of exemplary block diagram improving the device of large data statistics idle counting yield of embodiments of the invention four;
Fig. 7 is a kind of exemplary block diagram improving the device of large data statistics idle counting yield of embodiments of the invention five;
Fig. 8 is a kind of exemplary block diagram improving the device of large data statistics idle counting yield of embodiments of the invention six.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input block 120, user input unit 130, sensing cell 140, output unit 150, storer 160, interface unit 170, controller 180 and power supply unit 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the wireless communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receive digital broadcasting.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in storer 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (GPS).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating position and temporal information uses three satellites and by using the error of the position that goes out of an other satellite correction calculation and temporal information.In addition, GPS module 115 can carry out computing velocity information by Continuous plus current location information in real time.
A/V input block 120 is for audio reception or vision signal.A/V input block 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display module 151.Picture frame after camera 121 processes can be stored in storer 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of sound signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display module 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power supply unit 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other coupling arrangement.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, sound signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display module 151, dio Output Modules 152, alarm modules 153 etc.
Display module 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display module 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display module 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display module 151 and touch pad as a layer superposed on one another to form touch-screen time, display module 151 can be used as input media and output unit.Display module 151 can comprise at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific embodiment wanted, mobile terminal 100 can comprise two or more display modules (or other display device), such as, mobile terminal can comprise outside display module (not shown) and inner display module (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in storer 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loudspeaker, hummer etc.
Alarm modules 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm modules 153 can provide in a different manner and export with the generation of notification event.Such as, alarm modules 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm modules 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm modules 153 also can provide the output of the generation of notification event via display module 151 or dio Output Modules 152.
Storer 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, storer 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of sound signal.
Storer 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type storer (such as, SD or DX storer etc.), random access storage device (RAM), static random-access memory (SRAM), ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power supply unit 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various embodiment described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, embodiment described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such embodiment can be implemented in controller 180.For implement software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in storer 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or Physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA) (TDMA), CDMA (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several GPS (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Touch operation method of the present invention, is specially adapted to narrow frame or Rimless mobile terminal, first the Touch Zone of mobile terminal is divided into special subregion and common subregion same as the prior art, and distributes an input equipment for each subregion; When receiving touch control operation, judging which subregion this touch control operation occurs in, when occurring in special subregion, then reporting touch control operation by the input equipment corresponding to special subregion, when occurring in common subregion, then report touch control operation by the input equipment corresponding to common subregion; Finally, mobile terminal carries out special processing to the touch control operation that the input equipment corresponding to special subregion reports, and the touch control operation reported the input equipment corresponding to common subregion, as prior art, carries out normal process.
Describedly special processing is carried out to touch control operation can be understood as unconventional process or improper process are carried out to touch control operation, as ignored this touch control operation, generating special efficacy according to this touch control operation, or other processing mode self-defining.For example, unconventional process or improper process, can do following understanding: further when user clicks a certain application icon, and normal process or conventional processing start this application, and improper process or unconventional process are then to start this application.
Be described in detail below by way of specific embodiment.
Embodiment one
Fig. 3 is a kind of process flow diagram improving the method for large data statistics idle counting yield of embodiments of the invention one, a kind of method improving large data statistics idle counting yield of the present embodiment is described below in conjunction with Fig. 3, as shown in Figure 3, improve a method for large data statistics idle counting yield, comprising:
S10, by needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, in described wall scroll record, comprise renewal identification field;
By described renewal identification field, S20, startup idle calculation task, judge whether described wall scroll record completes renewal;
If S30 completes renewal, then idle calculating is carried out to described wall scroll record, and result idle calculated generates idle form.
In the present embodiment, comprise a lot of data in described database, also referred to as large data, these Data distribution8 are in several submeters, and each submeter is divided into again several wall scroll records.
In the present embodiment, some large packets are containing 3 submeters, and the data capacity of each submeter is 100,000 wall scroll records, if submeter 1 and submeter 2 write data, no longer upgrade, being in can idle computing mode, submeter 3 writes data, has write 70,000 records.In the prior art, there is following several scene:
Scene 1: submeter 1 and submeter 2, all through idle computing, generate idle form, so, in hybrid algorithm, real time computer needs the data volume of computing to be the data volume of submeter 3, and namely 70,000.
Scene 2: submeter 1 has generated idle form, submeter 2 is generating idle form, and so, in hybrid algorithm, real time computer needs the data volume of computing to be the data volume that the data volume of submeter 2 adds submeter 3, and namely 170,000.
Scene 3: submeter 1 is generating idle form, submeter 2 does not also generate idle form, and so, in hybrid algorithm, real time computer needs the data volume of computing to be that the data volume of submeter 1 adds that the data volume of submeter 2 adds the data volume of submeter 3, and namely 270,000.
And adopt the method in the present embodiment, still for above-mentioned scene:
Scene 1: submeter 1 and submeter 2 have generated idle form all, so, in hybrid algorithm, real time computer needs the data volume of computing to be the data volume also not completing idle calculating in submeter 3, is namely less than or equal to a value of 70,000.
Scene 2: submeter 1 has generated idle form, submeter 2 is generating idle form, so, in hybrid algorithm, real time computer needs the data volume of computing to be that the data volume also not completing idle calculating in submeter 2 adds in submeter 3 data volume also not completing idle and calculate, and is namely less than or equal to a value of 170,000.
Scene 3: submeter 1 is generating idle form, submeter 2 does not also generate idle form, so, in hybrid algorithm, real time computer needs the data volume of computing to be that the data volume also not completing idle calculating in submeter 1 adds that the data volume of submeter 2 adds in submeter 3 data volume also not completing idle and calculate, and is namely less than or equal to a value of 270,000.
As can be seen here, the fundamental unit that idle calculates by this method changes wall scroll record into from submeter, greatly improves dirigibility and the efficiency of idle calculating, reaches the service efficiency improving server, improve the object of Consumer's Experience; And this method carries out to process all submeters when idle calculates, and need not wait until that submeter writes data and just can process, also meet the business demand of FOTA operation note generting machanism.
Embodiment two
In the present embodiment, in described wall scroll record, also comprise idle report generation field, in order to represent whether described wall scroll record has completed idle and calculated, and generate idle form.
Fig. 4 is a kind of process flow diagram improving the method for large data statistics idle counting yield of the present embodiment; As shown in Figure 4, also comprise after described step S30:
S40, the value of the idle report generation field of described wall scroll record is set to true, represents that having completed idle calculates, and generate idle form, now upgrade and have recorded idle state, also indicate completing of idle task.
Embodiment three
In the present embodiment, described renewal identification field is the isWritable field of Boolean type, and described Boolean type data type only has two values: true (true) and false (false).
Fig. 5 is a kind of process flow diagram improving the method for large data statistics idle counting yield of the present embodiment; As shown in Figure 5, described step S20 comprises:
S21, startup idle calculation task;
Whether S22, the value judging described renewal identification field are true; If then represent that described wall scroll record upgrades;
If the value of the described renewal identification field of S23 is false, then represent that described wall scroll record completes renewal.
In the present embodiment, the wall scroll record upgraded can not carry out idle calculating, just can carry out idle calculating after by the time must completing renewal.
Embodiment four
Fig. 6 is a kind of exemplary block diagram improving the device of large data statistics idle counting yield of the present embodiment; As shown in Figure 6, a kind of device improving large data statistics idle counting yield, comprising:
Splitting module 10, for by needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, in described wall scroll record, comprising renewal identification field;
By described renewal identification field, judge module 20, after starting idle calculation task, judges whether described wall scroll record completes renewal;
Idle computing module 30, after completing renewal, then carries out idle calculating to described wall scroll record, and result idle calculated generates idle form.
Embodiment five
In the present embodiment, in described wall scroll record, also comprise idle report generation field, in order to represent whether described wall scroll record has completed idle and calculated, and generate idle form.
Fig. 7 is a kind of exemplary block diagram improving the device of large data statistics idle counting yield of the present embodiment; As shown in Figure 7,
In the present embodiment, also comprise:
Idle report generation module 40, the value for the idle report generation field by described wall scroll record is set to true, represents that having completed idle calculates, and generates idle form.
Embodiment six
In the present embodiment, described renewal identification field is the isWritable field of Boolean type.
Fig. 8 is a kind of exemplary block diagram improving the device of large data statistics idle counting yield of the present embodiment; As shown in Figure 8,
In the present embodiment, described judge module 20 comprises:
Task start unit 21, for starting idle calculation task;
Upgrade judging unit 22, for judging whether the value of described renewal identification field is true, if then represent that described wall scroll record upgrades; If the value of described renewal identification field is false, then represent that described wall scroll record completes renewal.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. improve a method for large data statistics idle counting yield, it is characterized in that, comprising:
By needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, in described wall scroll record, comprise renewal identification field;
Start idle calculation task, judge whether described wall scroll record completes renewal by described renewal identification field;
If complete renewal, then idle calculating is carried out to described wall scroll record, and result idle calculated generates idle form.
2. a kind of method improving large data statistics idle counting yield according to claim 1, it is characterized in that, also comprise idle report generation field in described wall scroll record, in order to represent whether described wall scroll record has completed idle and calculated, and generate idle form.
3. a kind of method improving large data statistics idle counting yield according to claim 2, is characterized in that, complete renewal if described, then carry out idle calculating to described wall scroll record, and result idle calculated also comprises after generating idle form:
The value of the idle report generation field of described wall scroll record is set to true.
4. a kind of method improving large data statistics idle counting yield according to claim 1, it is characterized in that, described renewal identification field is the isWritable field of Boolean type.
5. a kind of method improving large data statistics idle counting yield according to claim 4, is characterized in that, described startup idle calculation task, judges whether described wall scroll record has completed renewal and comprised by described renewal identification field:
Start idle calculation task;
Whether the value judging described renewal identification field is true, if then represent that described wall scroll record upgrades;
If the value of described renewal identification field is false, then represent that described wall scroll record completes renewal.
6. improve a device for large data statistics idle counting yield, it is characterized in that, comprising:
Splitting module, for by needing each submeter carried out in the database of idle calculating to be split as several wall scroll records, in described wall scroll record, comprising renewal identification field;
By described renewal identification field, judge module, after starting idle calculation task, judges whether described wall scroll record completes renewal;
Idle computing module, after completing renewal, then carries out idle calculating to described wall scroll record, and result idle calculated generates idle form.
7. a kind of device improving large data statistics idle counting yield according to claim 6, it is characterized in that, also comprise idle report generation field in described wall scroll record, in order to represent whether described wall scroll record has completed idle and calculated, and generate idle form.
8. a kind of device improving large data statistics idle counting yield according to claim 7, is characterized in that, also comprise:
Idle report generation module, the value for the idle report generation field by described wall scroll record is set to true.
9. a kind of device improving large data statistics idle counting yield according to claim 6, it is characterized in that, described renewal identification field is the isWritable field of Boolean type.
10. a kind of device improving large data statistics idle counting yield according to claim 9, it is characterized in that, described judge module comprises:
Task start unit, for starting idle calculation task;
Upgrade judging unit, for judging whether the value of described renewal identification field is true, if then represent that described wall scroll record upgrades; If the value of described renewal identification field is false, then represent that described wall scroll record completes renewal.
CN201510317841.XA 2015-06-11 2015-06-11 Method and device for increasing idle time calculation efficiency of big data statistics Pending CN104932884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510317841.XA CN104932884A (en) 2015-06-11 2015-06-11 Method and device for increasing idle time calculation efficiency of big data statistics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510317841.XA CN104932884A (en) 2015-06-11 2015-06-11 Method and device for increasing idle time calculation efficiency of big data statistics

Publications (1)

Publication Number Publication Date
CN104932884A true CN104932884A (en) 2015-09-23

Family

ID=54120060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510317841.XA Pending CN104932884A (en) 2015-06-11 2015-06-11 Method and device for increasing idle time calculation efficiency of big data statistics

Country Status (1)

Country Link
CN (1) CN104932884A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674152A (en) * 2019-09-24 2020-01-10 京东数字科技控股有限公司 Data synchronization method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943944A (en) * 2010-09-15 2011-01-12 中国人民解放军国防科学技术大学 Idle history information-based energy-saving method for computing array
CN102202072A (en) * 2010-03-23 2011-09-28 盛霆信息技术(上海)有限公司 Unidirectional synchronization method of internet website data
CN103488487A (en) * 2013-09-26 2014-01-01 深圳市金立通信设备有限公司 Event reminding method and terminal
CN104268178A (en) * 2014-09-16 2015-01-07 积成电子股份有限公司 Electric energy database writing method for power consumer electricity utilization information acquisition system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202072A (en) * 2010-03-23 2011-09-28 盛霆信息技术(上海)有限公司 Unidirectional synchronization method of internet website data
CN101943944A (en) * 2010-09-15 2011-01-12 中国人民解放军国防科学技术大学 Idle history information-based energy-saving method for computing array
CN103488487A (en) * 2013-09-26 2014-01-01 深圳市金立通信设备有限公司 Event reminding method and terminal
CN104268178A (en) * 2014-09-16 2015-01-07 积成电子股份有限公司 Electric energy database writing method for power consumer electricity utilization information acquisition system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674152A (en) * 2019-09-24 2020-01-10 京东数字科技控股有限公司 Data synchronization method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN105183308A (en) Picture display method and apparatus
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN105094960A (en) Data loading device and method based on two channels
CN104951206A (en) Icon hiding method and device
CN104954553A (en) Mobile terminal split-screen display method and device
CN105260083A (en) Mobile terminal and method for realizing split screens
CN104700839B (en) The method that multi-channel sound gathers, device, mobile phone and system
CN105187521A (en) Service processing device and method
CN104731512A (en) Method, device and terminal for sharing pictures
CN104899090A (en) Method, apparatus and mobile terminal for rapidly scheduling application process
CN105159700A (en) Application self-start control apparatus and method
CN105117241A (en) Firmware upgrade method and apparatus
CN104850443A (en) Method for shutting down false start-up application program and mobile terminal
CN104811865A (en) Audio output method, device and system
CN104915127A (en) Touch key setting method and device, and mobile terminal
CN104850325A (en) Mobile terminal application processing method and device
CN105262821A (en) Interface management apparatus and method
CN105353947A (en) Mobile terminal and application display content controlling method
CN105095051A (en) Method and device for reminding working state of background application program
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN104731456A (en) Desktop widget display method and device
CN105245938A (en) Device and method for playing multimedia files
CN105138871A (en) Unlocking method and apparatus for mobile terminal and mobile terminal
CN105094543A (en) Method and apparatus for inputting operation instruction of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150923

RJ01 Rejection of invention patent application after publication