CN106570042B - The detection method and device of the number of users of application program - Google Patents
The detection method and device of the number of users of application program Download PDFInfo
- Publication number
- CN106570042B CN106570042B CN201510661222.2A CN201510661222A CN106570042B CN 106570042 B CN106570042 B CN 106570042B CN 201510661222 A CN201510661222 A CN 201510661222A CN 106570042 B CN106570042 B CN 106570042B
- Authority
- CN
- China
- Prior art keywords
- time
- isochronous surface
- users
- moment
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application discloses a kind of detection method of the number of users of application program and devices.Wherein, the time is used using each user of application program this method comprises: obtaining, obtained multiple using the time, wherein each includes at the beginning of beginning to use application program and exiting the finish time using application program using the time;It each of gets according to preset time granularity division using the time, obtains multiple isochronous surfaces;Count the number of isochronous surface Ti in multiple isochronous surfaces, wherein it is the number of different time slice in multiple isochronous surfaces that i, which successively takes 1 to n, n, and isochronous surface T1 any two isochronous surface into isochronous surface Tn is not identical;And determine that the number of isochronous surface Ti is to use the number of users Bi of application program in moment Ai, wherein moment Ai is the moment represented by isochronous surface Ti.Present application addresses the relatively low technical problems of the efficiency detected in the prior art to number of users.
Description
Technical field
This application involves data processing field, detection method in particular to a kind of number of users of application program and
Device.
Background technique
During user is using application program (such as: network application), user behavior data log generally will record use
Family begins to use at the beginning of application program and exits the finish time using application program, and intermediate period user
It is all for active state, if it is desired to the load or carrying situation trend of system can be better understood, need to obtain
Certain moment or each moment use this index of the number of users of application program.In the prior art, if detecting or counting some
The number of users at moment, the sum of the number of users at moment where generally meeting in meeting that moment inquiry log as needed, for
The smaller situation of data volume, such inquiry mode still obtain query result reluctantly;But if in a large amount of data feelings
Condition, and the number of users at more moment is needed, or even need the number of users at each minimum unit moment, the effect of this inquiry mode
Rate with regard to it is very low descend.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the present application provides the detection method and device of a kind of number of users of application program, existing at least to solve
The relatively low technical problem of the efficiency that number of users is detected in technology.
According to the one aspect of the embodiment of the present application, a kind of detection method of the number of users of application program is provided, comprising:
It obtains and uses the time using each user of the application program, obtain multiple described using the time, wherein is each described to make
It include at the beginning of beginning to use the application program and exiting the finish time using the application program with the time;It presses
It each of is got according to preset time granularity division described using the time, obtains multiple isochronous surfaces;Count the multiple time
The number of isochronous surface Ti in slice, wherein it is of different time slice in the multiple isochronous surface that i, which successively takes 1 to n, n,
Number, isochronous surface T1 any two isochronous surface into isochronous surface Tn be not identical;And determine of the isochronous surface Ti
Number is the number of users Bi in moment Ai using the application program, wherein the moment Ai is represented by the isochronous surface Ti
Moment.
Further, it uses each user's of the application program to use the time in acquisition, obtains multiple uses
After time, the method also includes: grouping is multiple described using the time, obtains multiple time groups, wherein each time group
It including using the time described at least one, each of gets described using the time, obtains more according to preset time granularity division
A isochronous surface includes: according to each of in each time group of the preset time granularity parallel patition when use
Between, obtain the multiple isochronous surface.
Further, the number for counting isochronous surface Ti in the multiple isochronous surface includes: to establish the multiple time
Mapping relations in slice between each isochronous surface and default mapping value;Statistics has the mapping with the isochronous surface Ti
The mapping value number Di of the default mapping value of relationship;And determine that the mapping value number Di is the isochronous surface Ti's
Number.
It further, is to use the number of users of the application program in moment Ai in the number for determining the isochronous surface Ti
After Bi, the method also includes: it stores the number of users Bi is corresponding with the moment Ai to target database.
Further, it is storing the number of users Bi is corresponding with the moment Ai to target database, the side
Method further include: receive inquiry instruction;Extract the target query moment in the inquiry instruction;And it exports and the target query
Moment corresponding number of users.
According to the other side of the embodiment of the present application, a kind of detection device of the number of users of application program is provided, is wrapped
It includes: acquiring unit, the use time of each user for obtaining the use application program, when obtaining multiple uses
Between, wherein it is each it is described the use of the time includes at the beginning of beginning to use the application program and exiting and being answered described in use
With the finish time of program;Division unit, it is described using the time for each of being got according to preset time granularity division, it obtains
To multiple isochronous surfaces;Statistic unit, for counting the number of isochronous surface Ti in the multiple isochronous surface, wherein i is successively
Taking 1 to n, n is the number of different time slice in the multiple isochronous surface, and isochronous surface T1 is into isochronous surface Tn any two
A isochronous surface is not identical;And determination unit, for determining that the number of the isochronous surface Ti is described in the use of moment Ai
The number of users Bi of application program, wherein the moment Ai is the moment represented by the isochronous surface Ti.
Further, described device further include: grouped element, it is multiple described using the time for being grouped, when obtaining multiple
Between group, wherein each time group include at least one it is described use the time, the division unit includes: division module, use
It is described each of according to each time group of the preset time granularity parallel patition to use the time, it obtains the multiple
Isochronous surface.
Further, the statistic unit includes: to establish module, for establishing each time in the multiple isochronous surface
Mapping relations between slice and default mapping value;Statistical module has the mapping with the isochronous surface Ti for counting
The mapping value number Di of the default mapping value of relationship;And determining module, for determining the mapping value number Di for institute
State the number of isochronous surface Ti.
Further, described device further include: storage unit, for determining the isochronous surface Ti in the determination unit
Number be moment Ai using the application program number of users Bi after, the number of users Bi is corresponding with the moment Ai
It stores to target database.
Further, described device further include: receiving unit, in the storage unit by the number of users Bi and institute
It states moment Ai correspondence to store to target database, receives inquiry instruction;Extraction unit, for extracting in the inquiry instruction
The target query moment;And output unit, for exporting number of users corresponding with the target query moment.
In the embodiment of the present application, it uses each user's of the application program to use the time using acquisition, obtains more
It is a described to use the time, wherein it is each it is described the use of the time includes at the beginning of beginning to use the application program and moving back
The finish time of the application program is used out;It each of gets described using the time, obtains according to preset time granularity division
To multiple isochronous surfaces;Count the number of isochronous surface Ti in the multiple isochronous surface, wherein it is institute that i, which successively takes 1 to n, n,
State the number that different time in multiple isochronous surfaces is sliced, any two isochronous surface is not into isochronous surface Tn by isochronous surface T1
It is identical;And determine that the number of the isochronous surface Ti is to use the number of users Bi of the application program in moment Ai, wherein institute
Stating moment Ai is the moment represented by the isochronous surface Ti.When by each use for being got according to preset time granularity division
Between, and then the number by counting each isochronous surface, at the time of obtaining represented by each isochronous surface on number of users, reach
The statistics to any time number of users has been arrived, the number of users that can fast and effeciently obtain different moments is realized, has been solved existing
The technical problem for having the efficiency detected in technology to number of users relatively low.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the flow chart according to a kind of detection method of the number of users of optional application program of the embodiment of the present application;
And
Fig. 2 is the schematic diagram according to a kind of detection device of the number of users of optional application program of the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.According to the embodiment of the present application, a kind of detection of the number of users of application program is provided
The embodiment of the method for method, it should be noted that step shown in the flowchart of the accompanying drawings can be such as one group of computer can
It is executed in the computer system executed instruction, although also, logical order is shown in flow charts, in certain situations
Under, it can be with the steps shown or described are performed in an order that is different from the one herein.
Fig. 1 is the flow chart according to the detection method of the number of users of the application program of the embodiment of the present application.As shown in Figure 1,
The detection method of the number of users of the application program includes:
Step S102 is obtained and is used the time using each user of application program, obtains multiple using the time, wherein
Each includes at the beginning of beginning to use application program and exiting the finish time using application program using the time.
For example, user's first is 1:00:00-1:00:05 using the time, user's second is 1:00:00- using the time
1:00:04, user third using the time be 1:00:02-1:00:06, then user's first begin to use application program at the beginning of
Carving is 1:00:00, and exiting using the finish time of application program is 1:00:05;User's second begins to use opening for application program
Moment beginning is 1:00:00, and exiting using the finish time of application program is 1:00:04;User's third begins to use application program
At the beginning of be 1:00:02, exit using application program finish time be 1:00:06.In the embodiment of the present application, to
Family uses the acquisition of time, can be obtained, can also can be obtained by way of inquiry log by other in the prior art
It is carried out to user using the mode of time.
Step S104 each of gets using the time according to preset time granularity division, obtains multiple isochronous surfaces.
Step S106 counts the number of isochronous surface Ti in multiple isochronous surfaces, wherein it is multiple that i, which successively takes 1 to n, n,
The number that different time is sliced in isochronous surface, isochronous surface T1 any two isochronous surface into isochronous surface Tn be not identical.
Preset time granularity can be second, minute, and hour, etc. can according to need and be configured, and carry out by taking the second as an example
Illustrate, divide first uses the time, obtain 6 isochronous surfaces, respectively isochronous surface 1:00:00, isochronous surface 1:00:01,
Isochronous surface 1:00:02, isochronous surface 1:00:03, isochronous surface 1:00:04 and isochronous surface 1:00:05;Divide the use of second
Time, obtain 5 isochronous surfaces, respectively isochronous surface 1:00:00, isochronous surface 1:00:01, isochronous surface 1:00:02, when
Between be sliced 1:00:03 and isochronous surface 1:00:04;Division third uses the time, obtains 5 isochronous surfaces, the respectively time cuts
Piece 1:00:02, isochronous surface 1:00:03, isochronous surface 1:00:04, isochronous surface 1:00:05 and isochronous surface 1:00:06.Its
In, the number of isochronous surface 1:00:00 is 2, and the number of isochronous surface 1:00:01 is 2, and the number of isochronous surface 1:00:02 is
The number of 3, isochronous surface 1:00:03 are 3, and the number of isochronous surface 1:00:04 is 3, and the number of isochronous surface 1:00:05 is 2,
The number of isochronous surface 1:00:06 is 1.
Step S108 determines that the number of isochronous surface Ti is to use the number of users Bi of application program in moment Ai, wherein when
Carving Ai is the moment represented by isochronous surface Ti.
By each of being got according to preset time granularity division using the time, and then by counting each isochronous surface
Number, at the time of obtaining represented by each isochronous surface on number of users, reached the statistics to any time number of users,
The number of users that can fast and effeciently obtain different moments is realized, solves the effect detected in the prior art to number of users
The relatively low technical problem of rate.
Optionally, in the use time for obtaining each user using application program, after obtaining multiple use times, this Shen
Please application program provided by embodiment number of users detection method further include: grouping is multiple to use the time, when obtaining multiple
Between group, wherein each time group include at least one use the time, each use got according to preset time granularity division
Time, obtain multiple isochronous surfaces include: according to each of in each time group of preset time granularity parallel patition use the time,
Obtain multiple isochronous surfaces.
When number of users to be treated is very big, the time can be used to be grouped the user of acquisition, for example, having
1000000 users have obtained 1,000,000 using the time, have been divided into 10 groups using the time this 1,000,000, every group has 100,000 to make
With the time, the use time that 10 machines handle this 10 groups respectively can be used.
By being grouped multiple using the times, parallel processing, can speed up processing, improve processing speed.
Optionally, the number for counting isochronous surface Ti in multiple isochronous surfaces includes: to establish in multiple isochronous surfaces each
Mapping relations between isochronous surface and default mapping value;Default mapping value of the statistics with isochronous surface Ti with mapping relations
Mapping value number Di;And determine that mapping value number Di is the number of isochronous surface Ti.
It is further assumed that default mapping value is 1, the mapping between available each isochronous surface and default mapping value is closed
System is as shown in table 1, wherein it should be noted that being only illustrated so that default mapping value is 1 as an example in table 1, in reality
In implementation procedure, other numerical value can be set by default mapping value according to actual needs.
Table 1
From table 1 it follows that dividing the use time of first, second, third, 16 isochronous surfaces are obtained, wherein the time
The number for being sliced 1:00:00 is 2, and the number of isochronous surface 1:00:01 is 2, and the number of isochronous surface 1:00:02 is 3, and the time cuts
The number of piece 1:00:03 is 3, and the number of isochronous surface 1:00:04 is 3, and the number of isochronous surface 1:00:05 is 2, isochronous surface
The number of 1:00:06 is 1.
Having the accumulative number of the default mapping value 1 of mapping relations with isochronous surface 1:00:00 is 2, it is determined that is illustrated
Moment 1:00:00 is 2 using the number of users of application program;There is the default mapping of mapping relations with isochronous surface 1:00:01
The accumulative number of value 1 is 2, it is determined that illustrates that in moment 1:00:01 be 2 using the number of users of application program;With isochronous surface
It is 3 that 1:00:02, which has the accumulative number of the default mapping value 1 of mapping relations, it is determined that illustrates to use application in moment 1:00:02
The number of users of program is 3;Having the accumulative number of the default mapping value 1 of mapping relations with isochronous surface 1:00:03 is 3, then
Determining that explanation uses the number of users of application program in moment 1:00:03 is 3;There are mapping relations with isochronous surface 1:00:04
Default mapping value 1 accumulative number be 3, it is determined that illustrate moment 1:00:04 using application program number of users be 3;
Having the accumulative number of the default mapping value 1 of mapping relations with isochronous surface 1:00:05 is 2, it is determined that is illustrated in moment 1:00:
The number of users of 05 use application program is 2;There is the accumulative of the default mapping value 1 of mapping relations with isochronous surface 1:00:06
Number is 1, it is determined that illustrates that in moment 1:00:06 be 1 using the number of users of application program.
By establishing the mapping relations in multiple isochronous surfaces between each isochronous surface and default mapping value, statistics and when
Between slice have mapping relations default mapping value mapping value number, and determine mapping value number be isochronous surface
Number, having reached makes moment and this moment use the one-to-one effect of number of users of application program.
Optionally, after the number for determining isochronous surface Ti is the number of users Bi in moment Ai using application program, this
Apply for the detection method of the number of users of application program provided by embodiment further include: by number of users Bi storage corresponding with moment Ai
To target database.
The number of users that application program is used in moment 1:00:00 is 2;Application program is used in moment 1:00:01
Number of users is 2;The number of users that application program is used in moment 1:00:02 is 3;Application is used in moment 1:00:03
The number of users of program is 3;The number of users that application program is used in moment 1:00:04 is 3;Make in moment 1:00:05
It is 2 with the number of users of application program;The number of users that application program is used in moment 1:00:06 is 1.Number of users 2,
Moment 1:00:00;Number of users 2, moment 1:00:01;Number of users 3, moment 1:00:02;Number of users 3, moment 1:00:03;User
Number 3, moment 1:00:04;Number of users 2, moment 1:00:05;Number of users 1, the corresponding storage of moment 1:00:06.
By storing number of users is corresponding with the moment to target database, the subsequent number of users to different moments is looked into
During looking for, can be directly based upon the moment obtains from target database, realizes and calculates the number of users of different moments simultaneously in advance
And the technical effect kept, to improve the subsequent search efficiency for carrying out number of users inquiry.
Optionally, it is storing number of users Bi is corresponding with moment Ai to target database, method further include: reception is looked into
Ask instruction;Extract the target query moment in inquiry instruction;And output number of users corresponding with the target query moment.
When needing to inquire number of users sometime, such as the number of users at inquiry 1:00:05 moment, then export number of users
2,2 be the corresponding number of users of moment 1:00:05.
By receiving inquiry instruction, number of users corresponding with the target query moment is exported, a certain moment user of inquiry is reached
Several purposes.
According to the embodiment of the present application, a kind of detection device of the number of users of application program is additionally provided.The application program
The detection device of number of users can execute the detection method of the number of users of above-mentioned application program, the number of users of above-mentioned application program
Detection method can also be implemented by the detection device of the number of users of application.
Fig. 2 is the schematic diagram according to a kind of detection device of the number of users of application program of the embodiment of the present application.As schemed
Show, the detection device of the number of users of the application program includes: acquiring unit 20, division unit 40, statistic unit 60, determination unit
80。
Acquiring unit 20 uses each user of application program to use the time for obtaining, obtain it is multiple using the time,
Wherein, each includes at the beginning of beginning to use application program and at the end of exiting and using application program using the time
It carves.
For example, user's first is 1:00:00-1:00:05 using the time, user's second is 1:00:00- using the time
1:00:04, user third using the time be 1:00:02-1:00:06, then user's first begin to use application program at the beginning of
Carving is 1:00:00, and exiting using the finish time of application program is 1:00:05;User's second begins to use opening for application program
Moment beginning is 1:00:00, and exiting using the finish time of application program is 1:00:04;User's third begins to use application program
At the beginning of be 1:00:02, exit using application program finish time be 1:00:06.In the embodiment of the present application, to
Family uses the acquisition of time, can be obtained, can also can be obtained by way of inquiry log by other in the prior art
It is carried out to user using the mode of time.
Division unit 40 obtains multiple times for each of getting according to preset time granularity division using the time
Slice.
Statistic unit 60, for counting the number of isochronous surface Ti in multiple isochronous surfaces, wherein i successively takes 1 to n, n
For the number that different time in multiple isochronous surfaces is sliced, any two isochronous surface is not into isochronous surface Tn by isochronous surface T1
It is identical.
Preset time granularity can be second, minute, and hour, etc. can according to need and be configured, and carry out by taking the second as an example
Illustrate, divide first uses the time, obtain 6 isochronous surfaces, respectively isochronous surface 1:00:00, isochronous surface 1:00:01,
Isochronous surface 1:00:02, isochronous surface 1:00:03, isochronous surface 1:00:04 and isochronous surface 1:00:05;Divide the use of second
Time, obtain 5 isochronous surfaces, respectively isochronous surface 1:00:00, isochronous surface 1:00:01, isochronous surface 1:00:02, when
Between be sliced 1:00:03 and isochronous surface 1:00:04;Division third uses the time, obtains 5 isochronous surfaces, the respectively time cuts
Piece 1:00:02, isochronous surface 1:00:03, isochronous surface 1:00:04, isochronous surface 1:00:05 and isochronous surface 1:00:06.Its
In, the number of isochronous surface 1:00:00 is 2, and the number of isochronous surface 1:00:01 is 2, and the number of isochronous surface 1:00:02 is
The number of 3, isochronous surface 1:00:03 are 3, and the number of isochronous surface 1:00:04 is 3, and the number of isochronous surface 1:00:05 is 2,
The number of isochronous surface 1:00:06 is 1.
Determination unit 80, for determining that the number of isochronous surface Ti is to use the number of users Bi of application program in moment Ai,
Wherein, moment Ai is the moment represented by isochronous surface Ti.
By each of being got according to preset time granularity division using the time, and then by counting each isochronous surface
Number, at the time of obtaining represented by each isochronous surface on number of users, reached the statistics to any time number of users,
The number of users that can fast and effeciently obtain different moments is realized, solves the effect detected in the prior art to number of users
The relatively low technical problem of rate.
Optionally, device further include: grouped element, it is multiple using the time for being grouped, obtain multiple time groups, wherein
Each time group includes that at least one uses the time, and division unit includes: division module, for parallel according to preset time granularity
It each of divides in each time group using the time, obtains multiple isochronous surfaces.
When number of users to be treated is very big, the time can be used to be grouped the user of acquisition, for example, having
1000000 users have obtained 1,000,000 using the time, have been divided into 10 groups using the time this 1,000,000, every group has 100,000 to make
With the time, the use time that 10 machines handle this 10 groups respectively can be used.
By being grouped multiple using the times, parallel processing, can speed up processing, improve processing speed.
Optionally, statistic unit includes: to establish module, for establishing each isochronous surface in multiple isochronous surfaces and presetting
Mapping relations between mapping value;Statistical module, for counting and the isochronous surface Ti default mapping value with mapping relations
Mapping value number Di;And determining module, for determining that mapping value number Di is the number of isochronous surface Ti.
It is further assumed that default mapping value is 1, the mapping between available each isochronous surface and default mapping value is closed
System is as shown in table 1, wherein it should be noted that being only illustrated so that default mapping value is 1 as an example in table 1, in reality
In implementation procedure, other numerical value can be set by default mapping value according to actual needs.
From table 1 it follows that dividing the use time of first, second, third, 16 isochronous surfaces are obtained, wherein the time
The number for being sliced 1:00:00 is 2, and the number of isochronous surface 1:00:01 is 2, and the number of isochronous surface 1:00:02 is 3, and the time cuts
The number of piece 1:00:03 is 3, and the number of isochronous surface 1:00:04 is 3, and the number of isochronous surface 1:00:05 is 2, isochronous surface
The number of 1:00:06 is 1.
Having the accumulative number of the default mapping value 1 of mapping relations with isochronous surface 1:00:00 is 2, it is determined that is illustrated
Moment 1:00:00 is 2 using the number of users of application program;There is the default mapping of mapping relations with isochronous surface 1:00:01
The accumulative number of value 1 is 2, it is determined that illustrates that in moment 1:00:01 be 2 using the number of users of application program;With isochronous surface
It is 3 that 1:00:02, which has the accumulative number of the default mapping value 1 of mapping relations, it is determined that illustrates to use application in moment 1:00:02
The number of users of program is 3;Having the accumulative number of the default mapping value 1 of mapping relations with isochronous surface 1:00:03 is 3, then
Determining that explanation uses the number of users of application program in moment 1:00:03 is 3;There are mapping relations with isochronous surface 1:00:04
Default mapping value 1 accumulative number be 3, it is determined that illustrate moment 1:00:04 using application program number of users be 3;
Having the accumulative number of the default mapping value 1 of mapping relations with isochronous surface 1:00:05 is 2, it is determined that is illustrated in moment 1:00:
The number of users of 05 use application program is 2;There is the accumulative of the default mapping value 1 of mapping relations with isochronous surface 1:00:06
Number is 1, it is determined that illustrates that in moment 1:00:06 be 1 using the number of users of application program.
By establishing the mapping relations in multiple isochronous surfaces between each isochronous surface and default mapping value, statistics and when
Between slice have mapping relations default mapping value mapping value number, and determine mapping value number be isochronous surface
Number, having reached makes moment and this moment use the one-to-one effect of number of users of application program.
Optionally, device further include: storage unit, for determining that the number of isochronous surface Ti is at the moment in determination unit
After Ai is using the number of users Bi of application program, store number of users Bi is corresponding with moment Ai to target database.
The number of users that application program is used in moment 1:00:00 is 2;Application program is used in moment 1:00:01
Number of users is 2;The number of users that application program is used in moment 1:00:02 is 3;Application is used in moment 1:00:03
The number of users of program is 3;The number of users that application program is used in moment 1:00:04 is 3;Make in moment 1:00:05
It is 2 with the number of users of application program;The number of users that application program is used in moment 1:00:06 is 1.Number of users 2,
Moment 1:00:00;Number of users 2, moment 1:00:01;Number of users 3, moment 1:00:02;Number of users 3, moment 1:00:03;User
Number 3, moment 1:00:04;Number of users 2, moment 1:00:05;Number of users 1, the corresponding storage of moment 1:00:06.
By storing number of users is corresponding with the moment to target database, the subsequent number of users to different moments is looked into
During looking for, can be directly based upon the moment obtains from target database, realizes and calculates the number of users of different moments simultaneously in advance
And the technical effect kept, to improve the subsequent search efficiency for carrying out number of users inquiry.
Optionally, device further include: receiving unit, for storage unit by number of users Bi it is corresponding with moment Ai store to
After target database, inquiry instruction is received;Extraction unit, for extracting the target query moment in inquiry instruction;And it is defeated
Unit out, for exporting number of users corresponding with the target query moment.
When needing to inquire number of users sometime, such as the number of users at inquiry 1:00:05 moment, then export number of users
2,2 be the corresponding number of users of moment 1:00:05.
By receiving inquiry instruction, number of users corresponding with the target query moment is exported, a certain moment user of inquiry is reached
Several purposes.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
In above-described embodiment of the application, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, can be one kind
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module,
It can be electrical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple units
On.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
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.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of step of each embodiment method of the application
Suddenly.And storage medium above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
The above is only the preferred embodiments of the application, it is noted that those skilled in the art are come
It says, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications also should be regarded as
The protection scope of the application.
Claims (8)
1. a kind of detection method of the number of users of application program characterized by comprising
It obtains and uses the time using each user of the application program, obtain multiple described using the time, wherein Mei Gesuo
State using the time includes at the beginning of beginning to use the application program and exiting using at the end of the application program
It carves;
It each of is got according to preset time granularity division described using the time, obtains multiple isochronous surfaces;
Count the number of isochronous surface Ti in the multiple isochronous surface, wherein it is to cut the multiple time that i, which successively takes 1 to n, n,
The number that different time is sliced in piece, isochronous surface T1 any two isochronous surface into isochronous surface Tn be not identical;And
The number for determining the isochronous surface Ti is to use the number of users Bi of the application program in moment Ai, wherein when described
Carving Ai is the moment represented by the isochronous surface Ti;
Wherein, the time is used in each user of the acquisition use application program, after obtaining multiple use times, institute
State method further include: grouping is multiple described using the time, obtains multiple time groups, wherein each time group includes at least
One described to use the time, each of gets according to preset time granularity division described using the time, and obtaining multiple times cuts
Piece includes: to use the time according to described each of in each time group of the preset time granularity parallel patition, obtains institute
State multiple isochronous surfaces.
2. the method according to claim 1, wherein counting of isochronous surface Ti in the multiple isochronous surface
Number includes:
Establish the mapping relations in the multiple isochronous surface between each isochronous surface and default mapping value;
Statistics has the mapping value number Di of the default mapping value of the mapping relations with the isochronous surface Ti;And
Determine that the mapping value number Di is the number of the isochronous surface Ti.
3. the method according to claim 1, wherein being in moment Ai in the number for determining the isochronous surface Ti
After the number of users Bi of the application program, the method also includes:
It stores the number of users Bi is corresponding with the moment Ai to target database.
4. according to the method described in claim 3, it is characterized in that, by the number of users Bi it is corresponding with the moment Ai storage
To target database, the method also includes:
Receive inquiry instruction;
Extract the target query moment in the inquiry instruction;And
Export number of users corresponding with the target query moment.
5. a kind of detection device of the number of users of application program characterized by comprising
Acquiring unit, the use time of each user for obtaining the use application program, when obtaining multiple uses
Between, wherein it is each it is described the use of the time includes at the beginning of beginning to use the application program and exiting and being answered described in use
With the finish time of program;
Division unit, described using the time for each of getting according to preset time granularity division, obtaining multiple times cuts
Piece;
Statistic unit, for counting the number of isochronous surface Ti in the multiple isochronous surface, wherein i successively takes 1 to n, the n to be
The number that different time is sliced in the multiple isochronous surface, isochronous surface T1 any two isochronous surface into isochronous surface Tn
It is not identical;And
Determination unit, for determining that the number of the isochronous surface Ti is to use the number of users of the application program in moment Ai
Bi, wherein the moment Ai is the moment represented by the isochronous surface Ti;
Wherein, described device further include: grouped element, it is multiple described using the time for being grouped, multiple time groups are obtained,
In, each time group include at least one it is described use the time, the division unit includes: division module, for according to
Described each of in each time group of preset time granularity parallel patition to use the time, obtaining the multiple time cuts
Piece.
6. device according to claim 5, which is characterized in that the statistic unit includes:
Module is established, is closed for establishing the mapping in the multiple isochronous surface between each isochronous surface and default mapping value
System;
Statistical module, for counting the mapping value with the isochronous surface Ti default mapping value with the mapping relations
Number Di;And
Determining module, for determining that the mapping value number Di is the number of the isochronous surface Ti.
7. device according to claim 5, which is characterized in that described device further include:
Storage unit, for determining that the number of the isochronous surface Ti is to use the application in moment Ai in the determination unit
After the number of users Bi of program, store the number of users Bi is corresponding with the moment Ai to target database.
8. device according to claim 7, which is characterized in that described device further include:
Receiving unit, for storing to target database in the storage unit by the number of users Bi is corresponding with the moment Ai
Later, inquiry instruction is received;
Extraction unit, for extracting the target query moment in the inquiry instruction;And
Output unit, for exporting number of users corresponding with the target query moment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510661222.2A CN106570042B (en) | 2015-10-12 | 2015-10-12 | The detection method and device of the number of users of application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510661222.2A CN106570042B (en) | 2015-10-12 | 2015-10-12 | The detection method and device of the number of users of application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106570042A CN106570042A (en) | 2017-04-19 |
CN106570042B true CN106570042B (en) | 2019-12-03 |
Family
ID=58508225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510661222.2A Active CN106570042B (en) | 2015-10-12 | 2015-10-12 | The detection method and device of the number of users of application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106570042B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914471A (en) * | 2012-12-31 | 2014-07-09 | 北京启明星辰信息技术股份有限公司 | Mass event processing method and device |
CN104268293A (en) * | 2014-10-23 | 2015-01-07 | 北京国双科技有限公司 | Processing method and device for index cannot accumulated in database |
CN104699710A (en) * | 2013-12-09 | 2015-06-10 | 腾讯科技(深圳)有限公司 | User structure judgment method and device as well as account state recording method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7809384B2 (en) * | 2002-11-05 | 2010-10-05 | Microsoft Corporation | User-input scheduling of synchronization operation on a mobile device based on user activity |
-
2015
- 2015-10-12 CN CN201510661222.2A patent/CN106570042B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914471A (en) * | 2012-12-31 | 2014-07-09 | 北京启明星辰信息技术股份有限公司 | Mass event processing method and device |
CN104699710A (en) * | 2013-12-09 | 2015-06-10 | 腾讯科技(深圳)有限公司 | User structure judgment method and device as well as account state recording method and device |
CN104268293A (en) * | 2014-10-23 | 2015-01-07 | 北京国双科技有限公司 | Processing method and device for index cannot accumulated in database |
Non-Patent Citations (1)
Title |
---|
NoSQL:用Redis bitmap统计活跃用户;NoSQLfan;《http://tech.it168.com/a2011/1201/1282/000001282508.shtml》;20140314;第1-4页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106570042A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256265B (en) | A kind of search-engine results data visualization methods of exhibiting and system | |
EP3023885A1 (en) | Method and device for storing data | |
CA2764243A1 (en) | Co-selected image classification | |
EP1276034A3 (en) | Security for logical unit in storage subsystem | |
CN109710611B (en) | The method of storage table data, the method, apparatus of lookup table data and storage medium | |
WO2017101652A1 (en) | Method and apparatus for determining an access path between website pages | |
CN103905482B (en) | Method, push server and the system of pushed information | |
CN106685798A (en) | Method and device for generating message, and mobile terminal | |
CN109951804B (en) | People flow estimation method and device | |
CN104778177A (en) | Data processing method and device | |
CN112906806A (en) | Data optimization method and device based on neural network | |
CN104462420A (en) | Method and device for executing query tasks on database | |
CN109427038A (en) | A kind of cell phone pictures display methods and system | |
CN106570042B (en) | The detection method and device of the number of users of application program | |
CN105337848B (en) | The remark names preparation method and device of network good friend | |
CN105701861A (en) | Point cloud sampling method and system | |
CN104778202B (en) | The analysis method and system of event evolutionary process based on keyword | |
CN107870921B (en) | Log data processing method and device | |
CN112685169B (en) | Load control method, device, server and readable storage medium | |
CN109885384B (en) | Task parallelism optimization method and device, computer equipment and storage medium | |
CN104050284B (en) | A kind of data asynchronous query method and system based on one process | |
CN105589683B (en) | Sample extraction method and device | |
CN109643307B (en) | Stream processing system and method | |
CN105704173A (en) | Cluster system data distribution method and server | |
CN110019333A (en) | The display methods and device of data field |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |