CN107239542A - A kind of data statistical approach, device, server and storage medium - Google Patents
A kind of data statistical approach, device, server and storage medium Download PDFInfo
- Publication number
- CN107239542A CN107239542A CN201710412192.0A CN201710412192A CN107239542A CN 107239542 A CN107239542 A CN 107239542A CN 201710412192 A CN201710412192 A CN 201710412192A CN 107239542 A CN107239542 A CN 107239542A
- Authority
- CN
- China
- Prior art keywords
- targeted advertisements
- visit capacity
- corresponding current
- buffer memory
- preset buffer
- 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
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/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit 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/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2358—Change logging, detection, and notification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0242—Determining effectiveness of advertisements
Abstract
The embodiments of the invention provide a kind of data statistical approach, device, server and storage medium, method includes:When targeted advertisements are accessed, by the corresponding current accessed amount storage of targeted advertisements into preset buffer memory;When meeting predetermined statistical condition, statistical result is defined as the corresponding current total visit capacity of targeted advertisements by the corresponding current accessed amount of targeted advertisements stored in statistics preset buffer memory;The corresponding history visit capacity of targeted advertisements is read from database;By history visit capacity and current total visit capacity summation, summed result is defined as the corresponding total visit capacity of targeted advertisements.Using the embodiment of the present invention, when advertisement is accessed, the corresponding current accessed amount storage of advertisement is determined into total visit capacity into preset buffer memory, and when meeting predetermined statistical condition based on current accessed amount and history visit capacity.All database is conducted interviews and visit capacity is counted without accessing every time, it is seen that the access times and server stress of reduction database.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of data statistical approach, device, server and storage
Medium.
Background technology
At present, it is many on the webpage that user is watched to be related to advertisement with the development of Internet technology.Wherein, net is worked as
Advertisement on page, which is clicked, realizes being refreshed for webpage where page jump, or advertisement, thinks that advertisement is accessed.And advertisement
Data statistics is primarily referred to as the statistics of advertisement visit capacity, specifically, advertisement visit capacity includes ad click amount and advertising display amount,
Advertisement in webpage clicking realizes that the number of times of page jump is ad click amount, and the refreshing frequency of the webpage where advertisement is
Advertising display amount.
In the prior art, the statistical method of advertisement visit capacity is:For any advertisement, when the advertisement is accessed, service
Device determines the corresponding current accessed amount of the advertisement, then corresponding first visit capacity of the advertisement in searching data storehouse, i.e., this is visited
The corresponding history visit capacity of the advertisement before asking, carries out cumulative ask by the first visit capacity found and current accessed amount afterwards
With, and the numerical value obtained that will sum, as corresponding second visit capacity of the advertisement, second visit capacity is that the advertisement is corresponding
Total visit capacity.Wherein, database is used for be stored with advertisement and the corresponding relation of history visit capacity.
When advertisement is accessed, it is required for conducting interviews to database and counting visit capacity, the visit of database
Ask that number of times is more, server stress is larger.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of data statistical approach, device, server and storage medium, to subtract
The access times of few database, reduce server stress.Concrete technical scheme is as follows:
A kind of data statistical approach, applied to server, methods described includes:
When targeted advertisements are accessed, by the corresponding current accessed amount storage of the targeted advertisements into preset buffer memory;
When meeting predetermined statistical condition, the targeted advertisements stored in the preset buffer memory are counted corresponding current
Visit capacity, the corresponding current total visit capacity of the targeted advertisements is defined as by statistical result;
The corresponding history visit capacity of the targeted advertisements is read from database;
By the history visit capacity and current total visit capacity summation, summed result is defined as the targeted advertisements pair
The total visit capacity answered.
Alternatively, methods described also includes:
The corresponding history visit capacity of targeted advertisements described in the database is replaced with into the targeted advertisements corresponding total
Visit capacity.
Alternatively, the preset buffer memory is:Memcached cache systems.
Alternatively, it is described when meeting predetermined statistical condition, count the target stored in the preset buffer memory wide
Corresponding current accessed amount is accused, statistical result is defined as the corresponding current total visit capacity of the targeted advertisements, including:
When meeting predetermined statistical condition, the corresponding current visit of the targeted advertisements to being stored in the preset buffer memory
The amount of asking is summed, and summed result is defined as into the corresponding current total visit capacity of the targeted advertisements.
Alternatively, methods described also includes:
Receive client transmission checks instruction for the targeted advertisements;
The corresponding history visit capacity of targeted advertisements described in the database is searched, and is sent to client, so that described
The history visit capacity of the targeted advertisements is shown by client.
Alternatively, the predetermined statistical condition is:Predetermined point of time, or, obtain statistics instruction.
Alternatively, the corresponding current accessed amount of the targeted advertisements stored in the statistics preset buffer memory it
Afterwards, methods described also includes:
The corresponding current accessed amount of the targeted advertisements stored in the preset buffer memory is labeled as to have counted;
Or,
The corresponding current accessed amount of the targeted advertisements stored in the preset buffer memory is deleted.
The embodiment of the present invention additionally provides a kind of data statistics device, and applied to server, described device includes:
Memory module, for when targeted advertisements are accessed, the corresponding current accessed amount storage of the targeted advertisements to be arrived
In preset buffer memory;
Statistical module, for when meeting predetermined statistical condition, counting the target stored in the preset buffer memory
The corresponding current accessed amount of advertisement, the corresponding current total visit capacity of the targeted advertisements is defined as by statistical result;
Read module, for reading the corresponding history visit capacity of the targeted advertisements from database;
Summation module, for the history visit capacity and current total visit capacity to be summed, summed result is defined as
The corresponding total visit capacity of the targeted advertisements.
The embodiment of the present invention additionally provides a kind of server, including processor, communication interface, memory and communication bus,
Wherein, processor, communication interface, memory completes mutual communication by bus;
Memory, for depositing computer program;
Processor, for performing during the program deposited on memory, realizes the data system that the embodiment of the present invention is provided
Meter method.
The embodiment of the present invention additionally provides a kind of storage medium, and the storage medium internal memory contains computer program, described
The data statistical approach that the embodiment of the present invention is provided is realized when computer program is executed by processor.
Compared with prior art, the scheme provided using the embodiment of the present invention, when advertisement is accessed, by advertisement correspondence
Current accessed amount store into preset buffer memory, and current accessed amount when meeting predetermined statistical condition based on the advertisement and should
The history visit capacity of advertisement determines total visit capacity.Without just being conducted interviews whenever advertisement is accessed to database and to visit capacity
Counted, it is possible to reduce the access times of database, reduce server stress.
Certainly, implementing any product or method of the present invention must be not necessarily required to while reaching all the above excellent
Point.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
A kind of flow chart for data statistical approach that Fig. 1 is provided by the embodiment of the present invention;
A kind of structural representation for data statistics device that Fig. 2 is provided by the embodiment of the present invention;
A kind of structural representation for server that Fig. 3 is provided by the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
It should be noted that for ease of describing, accessed advertisement is named as into targeted advertisements in the embodiment of the present invention.
That is, " target " in the targeted advertisements mentioned by the embodiment of the present invention is used only for above distinguishing with other advertisements from name,
And without any limiting meaning.
In addition, a kind of data statistical approach that the embodiment of the present invention is provided is applied to server, specifically, realizing this hair
A kind of functional software for data statistical approach that bright embodiment is provided can be special advertisement visit capacity statistical software, also may be used
Think the plug-in unit in existing software, this is all rational.
The flow chart for a kind of data statistical approach that Fig. 1 is provided by the embodiment of the present invention, as shown in figure 1, this method bag
Include following steps:
S110, when targeted advertisements are accessed, preset buffer memory is arrived by the corresponding current accessed amount storage of the targeted advertisements
In.
Being refreshed for webpage where page jump, or advertisement is realized when the advertisement on webpage is clicked, advertisement is thought
It is accessed.For ease of being distinguished to accessing advertisement and non-access advertisement, in the present embodiment, accessed advertisement is defined as mesh
Mark advertisement.When targeted advertisements are accessed, server is by the corresponding current accessed amount storage of targeted advertisements into preset buffer memory.
It is appreciated that when targeted advertisements are accessed, server can determine whether the corresponding current accessed amount of targeted advertisements, and will
The corresponding current accessed amount of targeted advertisements of determination is stored into preset buffer memory.
It should be noted that server can be with a client communication, can also be with many client communications.
When server and a client communication, targeted advertisements can only be accessed by the unique client, then when target is wide
When accusing accessed, server determines that the corresponding current accessed amount of targeted advertisements is 1, and the current accessed amount 1 of targeted advertisements is deposited
Store up in preset buffer memory.
When server and many client communications, targeted advertisements may be accessed by many clients simultaneously, then work as target
When advertisement is accessed, server determines the corresponding current accessed of targeted advertisements according to the quantity of the client of access target advertisement
Amount, and the current accessed amount of targeted advertisements is stored into preset buffer memory.For example, it is assumed that targeted advertisements are simultaneously by 3 clients
Access, then now server can determine that the corresponding current accessed amount of targeted advertisements is 3, and by the current accessed amount of targeted advertisements
3 storages are into preset buffer memory.
Specifically, the preset buffer memory in the present embodiment can be:Memcached cache systems.Memcached is at a high speed
Caching system can be regarded as high performance distributed memory caching server.By the way that the current accessed amount of targeted advertisements is stored
Into preset buffer memory, it is possible to reduce database access number of times, and then the speed of Dynamic Web Applications can be improved, improve expansible
Property.
S120, when meeting predetermined statistical condition, counts the targeted advertisements correspondence stored in the preset buffer memory
Current accessed amount, statistical result is defined as the corresponding current total visit capacity of the targeted advertisements.
Specifically, the predetermined statistical condition in the present embodiment can be:Predetermined point of time, or, statistics instruction is obtained, when
So it is not limited thereto.
It is appreciated that when reaching that predetermined point of time, or acquisition statistics are instructed, being deposited in server statistics preset buffer memory
The corresponding current accessed amount of targeted advertisements of storage, the corresponding current total visit capacity of targeted advertisements is defined as by statistical result.
More specifically, predetermined point of time can be the time point of cycle set.For example, can be every three minutes to default
The corresponding current accessed amount of targeted advertisements stored in caching is counted;Or, every ten minutes to preset buffer memory in institute
The corresponding current accessed amount of targeted advertisements of storage is counted.
Predetermined point of time can also be the time point of aperiodic setting, for example, with three minutes and five minutes intervals to default
The corresponding current accessed amount of targeted advertisements stored in caching is counted.Specifically, every three after being counted apart from last time
Minute counts to the corresponding current accessed amount of targeted advertisements stored in preset buffer memory, then again every five minutes to default
The corresponding current accessed amount of targeted advertisements stored in caching is counted, then again every three minutes to preset buffer memory in deposited
The corresponding current accessed amount of targeted advertisements of storage is counted, and is circulated with this.
Alternatively, when meeting predetermined statistical condition, the targeted advertisements stored in statistics preset buffer memory are corresponding current
Visit capacity, statistical result is defined as the process of the corresponding current total visit capacity of targeted advertisements, can be specially:
When meeting predetermined statistical condition, the corresponding current accessed amount of targeted advertisements stored in preset buffer memory is carried out
Summation, the corresponding current total visit capacity of targeted advertisements is defined as by summed result.
For example, it is assumed that when meeting predetermined statistical condition, the corresponding current visit of targeted advertisements stored in preset buffer memory
The amount of asking has 2,1,4,5, then server can all current accessed amounts corresponding to targeted advertisements sum, that is, calculate 2+1+4+
5=12, and summed result 12 is defined as the corresponding current total visit capacity of targeted advertisements.
Alternatively, the step of the corresponding current accessed amount of the targeted advertisements that are stored in performing statistics preset buffer memory it
Afterwards, this method can also include:
The corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is labeled as to have counted.
It is understood that the corresponding current accessed amount of targeted advertisements can have predetermined life duration in preset buffer memory,
And server can delete the current accessed amount for reaching corresponding predetermined life duration, so as to ensure the current of preset buffer memory storage
Visit capacity it is ageing.
Specifically, current accessed amount is the duration that predetermined life duration is likely larger than predetermined statistical condition, i.e. to default slow
Deposit after the corresponding current accessed amount of stored targeted advertisements, when meeting predetermined statistical condition again, last time statistics
Targeted advertisements correspondence current accessed amount afterwards is also not up to corresponding predetermined life duration.Now, which server cannot be distinguished by
It is the last current accessed amount counted a bit, which is the current accessed amount of this secondary statistics.
In order to solve this problem, the targeted advertisements that server is stored in statistics preset buffer memory is performed are corresponding current
After the step of visit capacity, the corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is labeled as to have counted.When
When meeting predetermined statistical condition again, server is counted to not labeled current accessed amount.That is, based on system
The thought marked after meter, counts the specific system of the corresponding current accessed amount of the targeted advertisements stored in the preset buffer memory
Meter mode is:The current accessed amount that statistics is not labeled.
Or, alternatively, the step of the corresponding current accessed amount of targeted advertisements stored in statistics preset buffer memory is performed
After rapid, this method can also include:
The corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is deleted.That is, when meeting predetermined statistics
During condition, statistical result is defined as target wide by the corresponding current accessed amount of targeted advertisements stored in statistics preset buffer memory
Corresponding current total visit capacity is accused, and the corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is deleted.When
When meeting predetermined statistical condition again, server remains unchanged in directly statistics preset buffer memory, and the targeted advertisements that are stored are corresponding to work as
Preceding visit capacity, and perform subsequent step.
, will be default slow after being counted by the corresponding current accessed amount of the targeted advertisements stored in preset buffer memory
The corresponding current accessed amount of the targeted advertisements stored in depositing is deleted, and is easy to be stored in needing to preset buffer memory next time
Targeted advertisements corresponding current accessed amount when being counted, it is directly corresponding to the targeted advertisements stored in preset buffer memory to work as
Preceding visit capacity is counted, and without recognizing which is what is counted, which is not counted, can improve statistical efficiency.
S130, reads the corresponding history visit capacity of the targeted advertisements from database.
Determine after the corresponding current total visit capacity of targeted advertisements, it is corresponding that server reads targeted advertisements from database
History visit capacity.
Specifically, the corresponding relation being stored with database between advertisement and history visit capacity, for example, it is assumed that 1 pair of advertisement
The history visit capacity answered is 12, and the corresponding history visit capacity of advertisement 2 is 10, and the corresponding history visit capacity of advertisement 3 is 20, then in number
Can be as shown in table 1 according to the form stored in storehouse:
S140, the history visit capacity and current total visit capacity are summed, summed result is defined as into the target
The corresponding total visit capacity of advertisement.
For example, it is assumed that the corresponding history visit capacity of the targeted advertisements stored in database is the target that determines in 20, S120
The corresponding current total visit capacity of advertisement is 3, then 23=20+3 is defined as the corresponding total visit capacity of targeted advertisements by server.
Using the present embodiment, when advertisement is accessed, by the corresponding current accessed amount storage of advertisement into preset buffer memory, and
The history visit capacity of current accessed amount and the advertisement when meeting predetermined statistical condition based on the advertisement determines total visit capacity.Nothing
Just database need to be conducted interviews and visit capacity is counted whenever advertisement is accessed, it is possible to reduce the access time of database
Number, reduces server stress.
Further, as a kind of alternative of the present embodiment, after the corresponding total visit capacity of targeted advertisements is determined,
This method can also include:
The corresponding history visit capacity of targeted advertisements in database is replaced with into the corresponding total visit capacity of targeted advertisements.
For example, it is assumed that the corresponding total visit capacity of targeted advertisements that step S140 is determined is 23, the target stored in database
The corresponding history visit capacity of advertisement is 20, then server can replace with the corresponding history visit capacity 20 of targeted advertisements in database
23.It is appreciated that when targeted advertisements are accessed again, the corresponding history of targeted advertisements that server is read from database is visited
The amount of asking will be 23.
Further, as another alternative of the present embodiment, this method can also include:
Receive client transmission checks instruction for targeted advertisements;
The corresponding history visit capacity of targeted advertisements in the database is searched, and is sent to client, so that the client
The history visit capacity of targeted advertisements is shown by end.
Specifically, when user wants to check the corresponding history visit capacity of targeted advertisements, it can be pressed by clicking on client
Button or the mode in client input instruction, send to server and check instruction for targeted advertisements.Server is received
This is checked after instruction, the corresponding history visit capacity of targeted advertisements in searching data storehouse, and it is that history visit capacity is sent that will find
To client, so that the history visit capacity of targeted advertisements is showed user by client.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of data statistics device, the device application
In server, as shown in Fig. 2 the device includes:
Memory module 210, for when targeted advertisements are accessed, by the corresponding current accessed amount storage of targeted advertisements in advance
If in caching.
Statistical module 220, for when meeting predetermined statistical condition, counting the targeted advertisements pair stored in preset buffer memory
The current accessed amount answered, the corresponding current total visit capacity of targeted advertisements is defined as by statistical result.
Read module 230, for reading the corresponding history visit capacity of targeted advertisements from database.
Summation module 240, for history visit capacity and current total visit capacity to be summed, is defined as target wide by summed result
Accuse corresponding total visit capacity.
Using the present embodiment, when advertisement is accessed, by the corresponding current accessed amount storage of advertisement into preset buffer memory, and
The history visit capacity of current accessed amount and the advertisement when meeting predetermined statistical condition based on the advertisement determines total visit capacity.Nothing
Just database need to be conducted interviews and visit capacity is counted whenever advertisement is accessed, it is possible to reduce the access time of database
Number, reduces server stress.
Specifically, the installation method also includes:
Replacement module (not shown in Fig. 2), for the corresponding history visit capacity of targeted advertisements in database to be replaced with into mesh
Mark the corresponding total visit capacity of advertisement.
Alternatively, the preset buffer memory in the present embodiment can be:Memcached cache systems.
Specifically, statistical module 220 specifically for:
When meeting predetermined statistical condition, the corresponding current accessed amount of targeted advertisements stored in preset buffer memory is carried out
Summation, the corresponding current total visit capacity of targeted advertisements is defined as by summed result.
Specifically, the installation method also includes:
Receiving module (not shown in Fig. 2), instruction is checked for receive client transmission for targeted advertisements.
Searching modul (not shown in Fig. 2), for the corresponding history visit capacity of targeted advertisements in searching data storehouse, and sends
To client, so that the history visit capacity of targeted advertisements is shown by client.
Preferably, the predetermined statistical condition in the present embodiment is:Predetermined point of time, or, obtain statistics instruction.
Specifically, statistical module 220 specifically for:
After the corresponding current accessed amount of targeted advertisements stored in statistics preset buffer memory, it will be stored in preset buffer memory
The corresponding current accessed amount of targeted advertisements labeled as having counted.
Or, statistical module 220 specifically for:The corresponding current accessed of targeted advertisements stored in statistics preset buffer memory
After amount, the corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is deleted.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of server, as shown in figure 3, including place
Device 301, communication interface 302, memory 303 and communication bus 304 are managed, wherein, processor 301, communication interface 302, memory
303 complete mutual communication by communication bus 304;
Memory 303, for depositing computer program;
Processor 301, for performing during the program deposited on memory 303, realizes a kind of step of data statistical approach
Suddenly, specifically, a kind of data statistical approach comprises the following steps:
When targeted advertisements are accessed, by the corresponding current accessed amount storage of targeted advertisements into preset buffer memory;
When meeting predetermined statistical condition, the corresponding current accessed amount of targeted advertisements stored in statistics preset buffer memory,
Statistical result is defined as the corresponding current total visit capacity of targeted advertisements;
The corresponding history visit capacity of targeted advertisements is read from database;
By history visit capacity and current total visit capacity summation, summed result is defined as the corresponding total access of targeted advertisements
Amount.
The communication bus that above-mentioned server is mentioned can be Peripheral Component Interconnect standard (Peripheral Pomponent
Interconnect, abbreviation PCI) bus or EISA (Extended Industry Standard
Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..
For ease of representing, only represented in figure with a thick line, it is not intended that only one bus or a type of bus.
The communication that communication interface is used between above-mentioned server and other equipment.
Memory can include random access memory (Random Access Memory, abbreviation RAM), can also include
Nonvolatile memory (non-volatile memory), for example, at least one magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Ne twork Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), application specific integrated circuit (Applica tion Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array,
Abbreviation FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.
Alternatively, the data statistical approach also includes:
The corresponding history visit capacity of targeted advertisements described in database is replaced with into the corresponding total visit capacity of targeted advertisements.
Alternatively, preset buffer memory is:Memcached cache systems.
Alternatively, when meeting predetermined statistical condition, the targeted advertisements stored in statistics preset buffer memory are corresponding current
Visit capacity, the corresponding current total visit capacity of targeted advertisements is defined as by statistical result, including:
When meeting predetermined statistical condition, the corresponding current accessed amount of targeted advertisements stored in preset buffer memory is carried out
Summation, the corresponding current total visit capacity of targeted advertisements is defined as by summed result.
Alternatively, the data statistical approach also includes:
Receive client transmission checks instruction for targeted advertisements;
The corresponding history visit capacity of targeted advertisements in the database is searched, and is sent to client, so that client will
The history visit capacity of targeted advertisements is shown.
Alternatively, predetermined statistical condition is:Predetermined point of time, or, obtain statistics instruction.
Alternatively, after the corresponding current accessed amount of the targeted advertisements stored in the statistics preset buffer memory, institute
Stating method also includes:
The corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is labeled as to have counted;
Or,
The corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is deleted.
Using the present embodiment, when advertisement is accessed, by the corresponding current accessed amount storage of advertisement into preset buffer memory, and
The history visit capacity of current accessed amount and the advertisement when meeting predetermined statistical condition based on the advertisement determines total visit capacity.Nothing
Just database need to be conducted interviews and visit capacity is counted whenever advertisement is accessed, it is possible to reduce the access time of database
Number, reduces server stress.
The embodiment of the present invention additionally provides a kind of storage medium, and storage medium internal memory contains computer program, computer journey
The step of a kind of data statistical approach being realized when sequence is executed by processor, specifically, a kind of data statistical approach includes following step
Suddenly:
When targeted advertisements are accessed, by the corresponding current accessed amount storage of targeted advertisements into preset buffer memory;
When meeting predetermined statistical condition, the corresponding current accessed amount of targeted advertisements stored in statistics preset buffer memory,
Statistical result is defined as the corresponding current total visit capacity of targeted advertisements;
The corresponding history visit capacity of targeted advertisements is read from database;
By history visit capacity and current total visit capacity summation, summed result is defined as the corresponding total access of targeted advertisements
Amount.
Alternatively, the data statistical approach also includes:
The corresponding history visit capacity of targeted advertisements described in database is replaced with into the corresponding total visit capacity of targeted advertisements.
Alternatively, preset buffer memory is:Memcached cache systems.
Alternatively, when meeting predetermined statistical condition, the targeted advertisements stored in statistics preset buffer memory are corresponding current
Visit capacity, the corresponding current total visit capacity of targeted advertisements is defined as by statistical result, including:
When meeting predetermined statistical condition, the corresponding current accessed amount of targeted advertisements stored in preset buffer memory is carried out
Summation, the corresponding current total visit capacity of targeted advertisements is defined as by summed result.
Alternatively, the data statistical approach also includes:
Receive client transmission checks instruction for targeted advertisements;
The corresponding history visit capacity of targeted advertisements in the database is searched, and is sent to client, so that client will
The history visit capacity of targeted advertisements is shown.
Alternatively, predetermined statistical condition is:Predetermined point of time, or, obtain statistics instruction.
Alternatively, after the corresponding current accessed amount of the targeted advertisements stored in the statistics preset buffer memory, institute
Stating method also includes:
The corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is labeled as to have counted;
Or,
The corresponding current accessed amount of the targeted advertisements stored in preset buffer memory is deleted.
Using the present embodiment, when advertisement is accessed, by the corresponding current accessed amount storage of advertisement into preset buffer memory, and
The history visit capacity of current accessed amount and the advertisement when meeting predetermined statistical condition based on the advertisement determines total visit capacity.Nothing
Just database need to be conducted interviews and visit capacity is counted whenever advertisement is accessed, it is possible to reduce the access time of database
Number, reduces server stress.
It is emphasized that for server and storage medium embodiment, due to the method content involved by it
Foregoing embodiment of the method is substantially similar to, so description is fairly simple, related part is said referring to the part of embodiment of the method
It is bright.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of data statistical approach, it is characterised in that applied to server, methods described includes:
When targeted advertisements are accessed, by the corresponding current accessed amount storage of the targeted advertisements into preset buffer memory;
When meeting predetermined statistical condition, the corresponding current accessed of the targeted advertisements stored in the preset buffer memory is counted
Amount, the corresponding current total visit capacity of the targeted advertisements is defined as by statistical result;
The corresponding history visit capacity of the targeted advertisements is read from database;
By the history visit capacity and current total visit capacity summation, summed result is defined as the targeted advertisements corresponding
Total visit capacity.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
The corresponding history visit capacity of targeted advertisements described in the database is replaced with into the corresponding total access of the targeted advertisements
Amount.
3. according to the method described in claim 1, it is characterised in that the preset buffer memory is:Memcached cache memories
System.
4. according to the method described in claim 1, it is characterised in that described when meeting predetermined statistical condition, count described pre-
If the corresponding current accessed amount of the targeted advertisements stored in caching, statistical result is defined as the targeted advertisements correspondence
Current total visit capacity, including:
When meeting predetermined statistical condition, to the corresponding current accessed amount of the targeted advertisements stored in the preset buffer memory
Summed, summed result is defined as the corresponding current total visit capacity of the targeted advertisements.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
Receive client transmission checks instruction for the targeted advertisements;
The corresponding history visit capacity of targeted advertisements described in the database is searched, and is sent to client, so that the client
The history visit capacity of the targeted advertisements is shown by end.
6. the method according to claim any one of 1-5, it is characterised in that the predetermined statistical condition is:The scheduled time
Point, or, obtain statistics instruction.
7. the method according to claim any one of 1-5, it is characterised in that stored in the statistics preset buffer memory
The corresponding current accessed amount of the targeted advertisements after, methods described also includes:
The corresponding current accessed amount of the targeted advertisements stored in the preset buffer memory is labeled as to have counted;
Or,
The corresponding current accessed amount of the targeted advertisements stored in the preset buffer memory is deleted.
8. a kind of data statistics device, it is characterised in that applied to server, described device includes:
Memory module, for when targeted advertisements are accessed, the corresponding current accessed amount storage of the targeted advertisements to be arrived into default
In caching;
Statistical module, for when meeting predetermined statistical condition, counting the targeted advertisements stored in the preset buffer memory
Corresponding current accessed amount, the corresponding current total visit capacity of the targeted advertisements is defined as by statistical result;
Read module, for reading the corresponding history visit capacity of the targeted advertisements from database;
Summation module, for the history visit capacity and current total visit capacity to be summed, summed result is defined as described
The corresponding total visit capacity of targeted advertisements.
9. a kind of server, it is characterised in that including processor, communication interface, memory and communication bus, wherein, processor,
Communication interface, memory completes mutual communication by bus;
Memory, for depositing computer program;
Processor, for performing during the program deposited on memory, realizes any described method and steps of claim 1-7.
10. a kind of storage medium, it is characterised in that the storage medium internal memory contains computer program, the computer program
Claim 1-7 any described method and steps are realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710412192.0A CN107239542A (en) | 2017-06-02 | 2017-06-02 | A kind of data statistical approach, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710412192.0A CN107239542A (en) | 2017-06-02 | 2017-06-02 | A kind of data statistical approach, device, server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107239542A true CN107239542A (en) | 2017-10-10 |
Family
ID=59984900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710412192.0A Pending CN107239542A (en) | 2017-06-02 | 2017-06-02 | A kind of data statistical approach, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107239542A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108108398A (en) * | 2017-12-04 | 2018-06-01 | 福建中金在线信息科技有限公司 | A kind of browsing amount display method and device |
CN109472650A (en) * | 2018-11-21 | 2019-03-15 | 万翼科技有限公司 | Method for tracing, device and the readable storage medium storing program for executing of amount of access after poster is shared |
CN110727727A (en) * | 2019-10-15 | 2020-01-24 | 深圳前海微众银行股份有限公司 | Statistical method and device for database |
CN114138810A (en) * | 2022-01-27 | 2022-03-04 | 中国民航信息网络股份有限公司 | Access flow statistical method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102301764A (en) * | 2011-07-01 | 2011-12-28 | 华为技术有限公司 | Terminal distributed information acquiring method, data acquiring device and communication system |
CN103605736A (en) * | 2013-11-19 | 2014-02-26 | 北京国双科技有限公司 | Method and device for processing conversion data |
CN104104717A (en) * | 2014-06-30 | 2014-10-15 | 广州唯品会网络技术有限公司 | Inputting channel data statistical method and device |
-
2017
- 2017-06-02 CN CN201710412192.0A patent/CN107239542A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102301764A (en) * | 2011-07-01 | 2011-12-28 | 华为技术有限公司 | Terminal distributed information acquiring method, data acquiring device and communication system |
CN103605736A (en) * | 2013-11-19 | 2014-02-26 | 北京国双科技有限公司 | Method and device for processing conversion data |
CN104104717A (en) * | 2014-06-30 | 2014-10-15 | 广州唯品会网络技术有限公司 | Inputting channel data statistical method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108108398A (en) * | 2017-12-04 | 2018-06-01 | 福建中金在线信息科技有限公司 | A kind of browsing amount display method and device |
CN109472650A (en) * | 2018-11-21 | 2019-03-15 | 万翼科技有限公司 | Method for tracing, device and the readable storage medium storing program for executing of amount of access after poster is shared |
CN110727727A (en) * | 2019-10-15 | 2020-01-24 | 深圳前海微众银行股份有限公司 | Statistical method and device for database |
CN110727727B (en) * | 2019-10-15 | 2023-01-10 | 深圳前海微众银行股份有限公司 | Statistical method and device for database |
CN114138810A (en) * | 2022-01-27 | 2022-03-04 | 中国民航信息网络股份有限公司 | Access flow statistical method and system |
CN114138810B (en) * | 2022-01-27 | 2022-04-12 | 中国民航信息网络股份有限公司 | Access flow statistical method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104104717B (en) | Deliver channel data statistical approach and device | |
CN107239542A (en) | A kind of data statistical approach, device, server and storage medium | |
CN109241477A (en) | A kind of Website page loading method, device, electronic equipment and storage medium | |
CN105608117A (en) | Information recommendation method and apparatus | |
CN108647240B (en) | Method and device for counting access amount, electronic equipment and storage medium | |
CN105472045A (en) | Database migration method and database migration device | |
CN103338249A (en) | Cache method and device | |
CN105224343A (en) | A kind of renewal reminding method of application program and device | |
CN104219230B (en) | Identify method and the device of malicious websites | |
CN110022259B (en) | Message arrival rate determining method and device, data statistics server and storage medium | |
CN107343031A (en) | A kind of method, apparatus for automatically updating file, electronic equipment and storage medium | |
CN106909690A (en) | Network data caching method | |
CN106888381A (en) | A kind of data resource storage method and device | |
CN107301215A (en) | A kind of search result caching method and device, searching method and device | |
CN102546668A (en) | Method, device and system for counting unique visitors | |
CN103984743A (en) | Method and device for managing memory resources | |
CN107070991A (en) | Network data buffer storage and system | |
CN105045896A (en) | Method and apparatus for pushing promotion content to appointed page | |
CN107491549A (en) | A kind of data processing method and system | |
CN107609073A (en) | A kind of information methods of exhibiting, device, electronic equipment and storage medium | |
CN111563199A (en) | Data processing method and device | |
CN108154024A (en) | A kind of data retrieval method, device and electronic equipment | |
CN109977139B (en) | Data processing method and device based on class structured query statement | |
CN111597259A (en) | Data storage system, method, device, electronic equipment and storage medium | |
CN104991935A (en) | Website attention processing method and apparatus |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171010 |
|
WD01 | Invention patent application deemed withdrawn after publication |