CN104111961B - The method, apparatus that a kind of refresh data item is shown - Google Patents
The method, apparatus that a kind of refresh data item is shown Download PDFInfo
- Publication number
- CN104111961B CN104111961B CN201310142165.8A CN201310142165A CN104111961B CN 104111961 B CN104111961 B CN 104111961B CN 201310142165 A CN201310142165 A CN 201310142165A CN 104111961 B CN104111961 B CN 104111961B
- Authority
- CN
- China
- Prior art keywords
- data item
- display
- weighted value
- preferential
- list
- 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 OR CALCULATING; 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/903—Querying
- G06F16/9038—Presentation of query results
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Embodiment of the present invention discloses a kind of method that refresh data item is shown, including obtains the display number of each data item and selected number in display data storehouse, wherein, display data storehouse is the database of the current each data item to be shown of storage;The non-preferential display weighted value of each data item is obtained according to display number and selected number, wherein, when selected number is identical, the fewer corresponding non-preferential display weighted value of display number is smaller;The small data item of non-preferential display weighted value is entered into row major to show.Embodiment of the present invention also discloses the device that a kind of refresh data item is shown.By the above-mentioned means, the present invention enables to the chance for showing the reasonability shown with real-time update, raising data item, display being provided for more data item of data item.
Description
Technical field
The present invention relates to data item display field, the method, apparatus shown more particularly to a kind of refresh data item.
Background technology
Be installed on computer, the recommendation displaying of such as Chat communication software, video software different application software on mobile terminal,
Displaying of each commodity etc. belongs to the display side of the display, in the prior art data item of data item in database on shopping website
Method is to be sorted to be shown data item according to the initial default of data item in database, such as the recommendation displaying side of intelligent commodity
Method for the default sequence in merchandise display database by merchandise display to user for user browsed, choose download,
Purchase etc..
Present inventor has found that the data item display methods of prior art has the problem of following in long-term R & D:
The sequencing for each data item that user browses at different moments will not change, and the display of data item is not with number
The parameter of the real-time transforms such as the display number according to item and change, the chance that the few data item of display number is not shown preferentially.
The content of the invention
The present invention solves the technical problem of the method, apparatus that a kind of refresh data item of offer is shown, enable to
The machine for showing the reasonability shown with real-time update, raising data item, display being provided for more data item of data item
Meeting.
In order to solve the above technical problems, an aspect of of the present present invention is:A kind of method that refresh data item is shown is provided, wrapped
Include:The display number of each data item and selected number in display data storehouse are obtained, wherein, display data storehouse is worked as storage
The database of preceding each data item to be shown;The non-preferential of each data item is obtained according to display number and selected number
Weighted value is shown, wherein, when selected number is identical, the fewer corresponding non-preferential display weighted value of display number is smaller;Will
The small data item of non-preferential display weighted value is entered row major and shown.
Wherein, the step of obtaining in display data storehouse the display number of each data item and selected number is specifically wrapped
Include:Display data storehouse in default initial time and time interval between current time is obtained every a default time interval
In each data item display number C and selected number D.
Wherein, the step of non-preferential display weighted value of each data item being obtained according to display number and selected number
Specifically include:The number of levels E at each data item current time is obtained according to display number C and selected number D, wherein,
Number of levels E includes n different number of levels E=i(I=1,2 ..., n), the display number C of the first number of levels E=1<C1 with
And selected number D<D1, the display number C of the second number of levels E=2<C2 and selected number D<D2 and C >=C1 and/or D
>=D1, jth number of levels E=j(J=3 ..., n)Display number C<Cj and selected number D<Dj and C >=C (j-1) and/or
D >=D (j-1), C1<C2<…<Cn, D1<D2<…<Dn;
It is each to obtain that the display number C of each data item and number of levels E is substituted into non-preferential display weighted value formula
The non-preferential display weighted value V at individual data item current time, shown in non-preferential display weighted value formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and B is more than max { C1-1-D1, C2-1-D2 ..., C (n-1) -1-D
(n-1) positive number }.
Wherein, the step of small data item of non-preferential display weighted value being entered into row major display specifically includes:According to each
The order that the non-preferential display weighted value V at data item current time is ascending is ranked up to each data item, to obtain
One data item shows list;First data item is shown in list and is selected note with the data item before active user's current time
The data item matched of using videotape to record is shown in list from the first data item is deleted, and list is shown to obtain the second data item;According to second
Data item shows that the order that non-preferential display weighted value V is ascending in list shows corresponding each data item successively.
Wherein, show that the order that non-preferential display weighted value V is ascending in list is shown successively according to the second data item
The step of corresponding each data item, specifically includes:The second data item show list according to non-preferential display weighted value V by
The small data item that the first predetermined number is chosen to big order shown successively in current display page, wherein, first is default
Quantity is less than or equal to the total quantity that the second data item shows data item in list.
Wherein, wrapped before the step of obtaining in display data storehouse the display number of each data item and selected number
Include:Sequencing according to each data item creation time in basic database obtains the second predetermined number from basic database
Data item, to create display data storehouse, wherein, basic database be stored in before default initial time created it is each
The database of individual data item, the second predetermined number are less than or equal to the total quantity of data item in basic database.
In order to solve the above technical problems, another aspect of the present invention is:The device that a kind of refresh data item is shown is provided, wrapped
Include:Number acquisition module, for the display number for obtaining each data item in display data storehouse and selected number, wherein,
Display data storehouse is the database of the current each data item to be shown of storage;Weighted value acquisition module, for according to display time
Several and selected number obtains the non-preferential display weighted value of each data item, wherein, when selected number is identical, display
Non-preferential display weighted value is smaller corresponding to number is fewer;Display module, for by the small data item of non-preferential display weighted value
Enter row major to show.
Wherein, number acquisition module be specifically used for every a default time interval obtain default initial time with it is current
The display number C of each data item and selected number D in display data storehouse in time interval between moment.
Wherein, Weight Acquisition module is specifically used for the display number C obtained according to number acquisition module and selected time
Number D obtains the number of levels E at each data item current time, wherein, number of levels E includes n different number of levels E=i(i
=1,2 ..., n), the display number C of the first number of levels E=1<C1 and selected number D<D1, the second number of levels E=2
Show number C<C2 and selected number D<D2 and C >=C1 and/or D >=D1, jth number of levels E=j(J=3 ..., n)It is aobvious
Show number C<Cj and selected number D<Dj and C >=C (j-1) and/or D >=D (j-1), C1<C2<…<Cn, D1<D2<…<
Dn;
Weight Acquisition module is specifically additionally operable to the display number C of each data item and number of levels E substitutions is non-preferential
Display weighted value formula is non-preferential to show that weighted value is public to obtain the non-preferential display weighted value V at each data item current time
Shown in formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and B is more than max { C1-1-D1, C2-1-D2 ..., C (n-1) -1-D
(n-1) positive number }.
Wherein, display module specifically includes:First data item shows list acquiring unit, for working as according to each data item
The order that the non-preferential display weighted value V at preceding moment is ascending is ranked up to each data item, to obtain the first data item
Show list;Second data item shows list acquiring unit, current with active user in list for the first data item to be shown
The data item that the selected record of data item before moment matches is shown in list from the first data item deletes, to obtain second
Data item shows list;Data item display unit, for according to the second data item show list in non-preferential display weighted value V by
It is small to show corresponding each data item successively to big order.
The beneficial effects of the invention are as follows:The situation of prior art is different from, the present invention obtains each number in display data storehouse
Display number and selected number according to item;Each data item is further obtained according to display number and selected number
Non-preferential display weighted value, wherein, when selected number is identical, the fewer corresponding non-preferential display weighted value of display number is more
It is small;The small data item of non-preferential display weighted value finally is entered into row major to show.By the above-mentioned means, the present invention enables to count
According to the chance for showing the reasonability shown with real-time update, raising data item, display being provided for more data item of item.
Brief description of the drawings
Fig. 1 is the flow chart for the embodiment of method one that refresh data item of the present invention is shown;
Fig. 2 is according to display number and selected number in the embodiment of method one that refresh data item of the present invention is shown
Obtain the flow chart of the non-preferential display weighted value of each data item;
Fig. 3 is by the non-preferential data for showing that weighted value is small in the embodiment of method one that refresh data item of the present invention is shown
Item enters the flow chart that row major is shown;
Fig. 4 is the theory diagram for the embodiment of device one that refresh data item of the present invention is shown;
Fig. 5 is the theory diagram of display module in the embodiment of device one that refresh data item of the present invention is shown.
Embodiment
Below in conjunction with the accompanying drawing in embodiment of the present invention, the technical scheme in embodiment of the present invention is carried out clear
Chu, it is fully described by, it is clear that described embodiment only a part of embodiment of the present invention, rather than whole realities
Apply mode.Based on the embodiment in the present invention, those of ordinary skill in the art institute under the premise of creative work is not made
The every other embodiment obtained, belongs to the scope of protection of the invention.
Referring to Fig. 1, the embodiment of method one that refresh data item of the present invention is shown includes:
Step S101:Obtain the display number of each data item and selected number in display data storehouse;
The display number of each data item and selected number in display data storehouse are obtained, is specially:It is default every one
Time interval obtain in default initial time and time interval between current time each data item in display data storehouse
Display number C and selected number D.Display data storehouse is the database of the current each data item to be shown of storage, its
In current each data item to be shown include each data item for having been shown before current time and/or before current time not
Each data item of display, show number for the total degree that the data item is browsed by all users in some time interval, example
As user u1 has browsed data item b twice altogether in T1 time intervals, user u2 has browsed number altogether in T1 time intervals
According to item b three times, then display numbers of the data item b in T1 time intervals is five;Selected number is in some time interval
All users are downloaded the total degree of operation, such as a total of four users in T2 time intervals to the data item chosen
Choose and downloaded data item c, then selected numbers of the data item c in T2 time intervals is four.Wherein, in default starting
The display number and selected number for carving each data item are 0.Default time interval can be one hour, 30 minutes etc.
Different time interval, is chosen with specific reference to being actually needed, and is not made too many restrictions herein.In present embodiment, default
Begin the moment be chosen for the same day initial time, in other embodiments, default initial time can also be chosen for it is any one its
Its moment.The data item in display data storehouse show it is specific be mounted to computer, on mobile terminal as Chat communication software, video are soft
Displaying of each commodity etc. in the recommendation displaying of the different application software such as part or shopping website, when data item is application software,
It is the total degree that all users are downloaded operation to the application software chosen that number is selected corresponding to data item, works as number
It is that all users are carried out to the commodity chosen that number is selected when netting the commodity on website according to item for purchase, corresponding to data item
The total degree of operation is bought, it is to carry out purchase operation to the commodity that operation is now downloaded to the data item, it is possible to understand that
, in other embodiments, selected number can also be the number consulted in detail by user or the number collected by user
Deng therefore not to repeat here.
Step S102:The non-preferential display weighted value of each data item is obtained according to display number and selected number;
The non-preferential display weight of each data item is obtained according to the display number of each data item and selected number
Value, wherein, when selected number is identical, the fewer corresponding non-preferential display weighted value of display number is smaller.
Step S103:The small data item of non-preferential display weighted value is entered into row major to show.
Specifically, the small data item of the non-preferential display weighted value that step S102 is obtained is entered row major and shown.
In addition, in the present embodiment, the display number of each data item and selected in display data storehouse is obtained
Also include before the step of number:According to the sequencing of each data item creation time in basic database from basic database
The middle data item for obtaining the second predetermined number, to create display data storehouse, wherein, basic database is to be stored in default starting
The database of each data item created before moment, the second predetermined number are less than or equal to data item in basic database
Total quantity.Such as come 100,000 data item when obtaining creation time from the basic database that data item total quantity is 100,000
Last ten thousand data item, to create display data storehouse, now the second predetermined number be 10,000, less than in basic database
The subclass of database based on the total quantity of data item, i.e. display data storehouse;Such as when from data item total quantity be 100,000
Basic database in obtain 100,000 data item, to create display data storehouse, now the second predetermined number be 100,000, be equal to
Database is in itself based on the total quantity of data item in basic database, i.e. display data storehouse.
Referring to Fig. 2, according to display number and it is chosen in the embodiment of method one that refresh data item of the present invention is shown
The non-preferential display weighted value that middle number obtains each data item specifically includes following sub-step:
Sub-step S1021:The quantity at each data item current time is obtained according to display number C and selected number D
Rank E;
According to each data item in display data storehouse in default initial time and the time interval between current time
Display number C and selected number D further obtains the number of levels E at each data item current time, wherein, number of levels
E includes n different number of levels E=i(I=1,2 ..., n), the display number C of the first number of levels E=1<C1 and selected
Number D<D1, the display number C of the second number of levels E=2<C2 and selected number D<D2 and C >=C1 and/or D >=D1, jth
Number of levels E=j(J=3 ..., n)Display number C<Cj and selected number D<Dj and C >=C (j-1) and/or D >=D (j-
1), C1<C2<…<Cn, D1<D2<…<Dn.
Such as n=3, now number of levels E includes 3 different number of levelss, it is respectively:First number of levels E=1
(Qualifying rank), the second number of levels E=2(Satisfactory level)And the 3rd number of levels E=3rd(Very satisfied rank).Wherein,
The display number C of one number of levels E=1<C1 and selected number D<D1;The display number C of second number of levels E=2<C2 with
And selected number D<D2 and C >=C1 and/or D >=D1;The display number C of 3rd number of levels E=3<C3 and selected number
D<D3 and C >=C2 and/or D >=D2, C1<C2<C3, D1<D2<D3.Have for individual data item:Display number C be more than or
Equal to selected number D, i.e. C >=D.By the display number C of above-mentioned each number of levels and selected number D magnitude range
Understand:At least one threshold value for reaching next stage number of levels in display number C, selected number D(C1、C2、…、C
(n-1);D1、D2、…、D(n-1))When be scalable to next stage number of levels, such as the order of magnitude at data item a current times
Not Wei E=1, after a default time interval, data item a display number C<C1, selected number D=D1, D reach next stage
The threshold value D1 of number of levels E=2, now number of levels corresponding to data item a E=2 are upgraded to by E=1.
Sub-step S1022:The display number C of each data item and number of levels E is substituted into non-preferential display weighted value
Formula is to obtain the non-preferential display weighted value V at each data item current time.
By in display data storehouse in default initial time and time interval between current time each data item it is aobvious
Show number C and the number of levels E at current time substitute into non-preferential display weighted value formula with obtain each data item it is current when
The non-preferential display weighted value V carved, shown in non-preferential display weighted value formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and weight order of magnitude upgrade unit B ensures that different pieces of information item is in difference
During number of levels E, the non-preferential display weighted value V of the less data item of number of levels E is less than the larger data item of number of levels E
Non-preferential display weighted value V, i.e. E it is smaller corresponding to V it is smaller, B be more than max C1-1-D1, C2-1-D2 ..., C (n-1)-
1-D (n-1) } a positive number.Below to B numerical value span(Assuming that n=3)It is specifically described:As n=3, now count
The other E of magnitude includes three different number of levelss, it is assumed that data item a number of levels E=1, display number Ca<C1, it is selected secondary
Number Da<D1;Data item b number of levels E=2, display number Cb<C2, it is selected number D1≤Db<D2;Data item c quantity
Rank E=3, display number are Cc<C1, it is selected number D2≤Dc<D3, it is smaller and above-mentioned non-preferential by the smaller corresponding V of E
Display weighted value formula can be able to lower inequality:(1)B+Ca<2B+Cb<3B+Cc, by inequality(1)It is decomposed into following two
Inequality(2)、(3):(2)B+Ca<2B+Cb,(3)2B+Cb<3B+Cc, to inequality(2)、(3)Arrange to obtain:(4)B>
Ca-Cb,(5)B>Cb-Cc, therefore B value should be more than the maximum in Ca-Cb, Cb-Cc two values, by difference
Display number C, selected number D span and C >=D can be obtained corresponding to rank E:For(Ca-Cb)Middle Ca maximum
Value is C1-1, and Cb minimum value is D1;For(Cb-Cc)Middle Cb maximum occurrences are C2-1, and Cc minimum value is D2,
Therefore B numerical value is more than max { C1-1-D1, C2-1-D2 }.Such as C1=500, D1=50, C2=1000, D2=100, then max
{ C1-1-D1, C2-1-D2 }=899, now B>899, i.e. B can value be 900 etc..
In other embodiments, when number of levels E includes n(n≠3)During individual varying number rank, weight order of magnitude liter
The span of level unit B changes with the quantity n of number of levels, to ensure the non-optimum of the less data item of number of levels E
First showing that weighted value V is less than the non-preferential display weighted value V of the larger data item of number of levels E, i.e. the smaller corresponding V of E are smaller,
B is a positive number more than max { C1-1-D1, C2-1-D2 ..., C (n-1) -1-D (n-1) }, below to B numerical value value model
Enclose(Assuming that n ≠ 3)It is specifically described again:Number of levels E includes n different number of levels E=i(I=1,2 ..., n), number
According to item a data-level E=1, display number Ca<C1, it is selected number Da<D1;Data item b data-level E=2, display time
Number Cb<C2, it is selected number D1≤Db<D2;Data item c number of levels E=3, display number are Cc<C3, it is selected number D2
≤Dc<D3;Data item m data-level E=n(N is the integer more than 3), display number is Cm<Cn, it is selected number D (n-1)
≤Dm<Dn, by E it is smaller corresponding to V it is smaller and it is above-mentioned it is non-preferential display weighted value formula can be able to lower inequality:(1)B+Ca<
2B+Cb<…<NB+Cm, by inequality(1)It is decomposed into lower inequality:B+Ca<2B+Cb, 2B+Cb<3B+Cc ..., (n-1) B+C
(m-1)<NB+Cm, above-mentioned inequality, which is arranged, to be obtained:B>Ca-Cb,B>Cb-Cc ..., B>Therefore B takes by C (m-1)-Cm
Ca-Cb, Cb-Cc ... should be more than by being worth, and the maximum in all numerical value of C (m-1)-Cm, be shown as corresponding in different stage E
Show that number C, selected number D span and C >=D can be obtained:For(Ca-Cb)Middle Ca maximum occurrences are C1-1, Cb
Minimum value be D1;For(Cb-Cc)Middle Cb maximum occurrences are C2-1, and Cc minimum value is D2;For C (m-1)-Cm
The minimum value that the maximum occurrences of middle C (m-1) are C (n-1) -1, Cm is D (n-1), therefore B is more than max { C1-1-D1, C2-
1-D2 ..., C (n-1) -1-D (n-1) } a positive number.Such as n=4, i.e., in above three number of levels(n=3)Base
Increase a 4th number of levels E=4, the display number C of the 4th number of levels E=4 on plinth<C4 and selected number D<D4 and
C >=C3 and/or D >=D3, now B is a positive number more than max { C1-1-D1, C2-1-D2, C3-1-D3 }.By non-preferential aobvious
Show that weighted value formula is understood:When the selected number D of different pieces of information item is identical, display number C is fewer corresponding non-preferential aobvious
Show that weighted value V is smaller;When the number of levels E of different pieces of information item is identical, the non-preferential display weighted value V of data item is with display time
Count C and change, specially show that number C is bigger, corresponding non-preferential display weighted value V is also bigger.Wherein, in default starting
The non-preferential display weighted value V of moment each data item is 0.
It is referring to Fig. 3, in the embodiment of method one that refresh data item of the present invention is shown that non-preferential display weighted value is small
Data item enter row major and show to specifically include following sub-step:
Sub-step S1031:It is right according to the ascending orders of the non-preferential display weighted value V at each data item current time
Each data item is ranked up;
Each data item is entered according to the ascending orders of the non-preferential display weighted value V at each data item current time
Row sequence, list is shown to obtain the first data item.
Sub-step S1032:First data item is shown in list and is chosen with the data item before active user's current time
The middle data item to match that records is deleted from the display list of the first data item;
First data item being shown to, being selected record with the data item before active user's current time in list matches
Data item from the first data item show list in delete, with obtain the second data item show list, the second data item display row
Each data item in table is ranked up according to the ascending orders of non-preferential display weighted value V.Wherein, active user is to work as
The preceding data item just before the user of browse displays database data item, active user's current time is selected to be recorded as recording
The historical record for all data item chosen before active user's current time, different active users have each self-corresponding work as
The selected record of data item before the preceding moment, therefore different active users is corresponding with and belongs to respective second data item and show
List, using historical record corresponding to unique user show the intelligently filters of list well.Such as current time is altogether
There is data item of two users in browse displays database, respectively user u1, u2, wherein user u1, u2 are active user,
First data item shows that list is a, b, c, e, f, g, h, wherein user u1 have selected before current time data item b, c, e,
J, the first data item, which is shown in list, contains data item b, c, e, thus by the first data item show in list with current time
Data item b, c, e that the selected record of data item before matches are shown in list from the first data item to be deleted, and is corresponded to
User u1 the second data item shows list a, f, g, h;User u2 have selected data item b, c, f, i before current time, the
One data item, which is shown in list, contains data item b, c, f, thus by the first data item show in list with before current time
The selected record of data item data item b, c, f for matching show in list and delete from the first data item, obtain corresponding user
U2 the second data item shows list a, e, g, h.
Sub-step S1033:According to the second data item show non-preferential display weighted value V is ascending in list order according to
Each data item corresponding to secondary display.
Show that the non-preferential order for showing that weighted value V is ascending is shown corresponding successively in list according to the second data item
Each data item, it is specially:Selected in the second data item shows list according to the ascending orders of non-preferential display weighted value V
Take the data item of the first predetermined number to be shown successively in current display page, realize data small nonpreemption weight values V
Item carries out preceding preferential display, wherein, the first predetermined number is less than or equal to data item in the display list of the second data item
Total quantity.Such as second data item show list include 10,000 data item altogether, from the second data item display list in choose
First 100(First predetermined number)Data item shows the page first(Current display page)Shown successively, the first display
Each data item of the page is ranked up according to the ascending orders of non-preferential display weighted value V, now the first predetermined number
Less than the total quantity that the second data item shows data item in list;When user click on browse the second display page when, similarly from except
According to nonpreemption in the data item of the second data item display list outside data item shown by the above-mentioned first display page
The data item that order ascending weight values V chooses the first predetermined number is shown in the second display page;In addition when except upper
State the lazy weight that the second data item outside the data item shown by the first display page shows remaining data item in list
During the first predetermined number, then the second data item is shown that remaining data item is ascending according to nonpreemption weight values V in list
Order second display the page shown.In other embodiments, the first predetermined number is also optional is taken equal to second
Data item shows the total quantity of data item in list, i.e., shows the second data item all data item of list according to non-preferential aobvious
Show that the ascending orders of weighted value V are shown successively in current display page.
Refresh data item display methods of the present invention is obtaining default initial time with working as every a default time interval
In time interval between the preceding moment in display data storehouse after the display number of each data item and selected number, further
The current non-preferential display weighted value of each data item is obtained according to display number and selected number, finally will be non-preferential aobvious
Show that the small data item of weighted value is entered row major and shown, can be refreshed with the time frequency of above-mentioned one default time interval and show number
According to the display of data item in storehouse.
Below the embodiment of method one that refresh data item of the present invention is shown illustrate by taking the displaying of commodity as an example
It is bright:
Assuming that commodity display data storehouse includes commodity a, b, c, d, default initial time and between current time when
Between interval in commodity a display number C<C1 and selected number D<D1, commodity b display number C<C3 and selected time
Number D<D3 and C >=C2, commodity c display number C<C2 and selected number D<D2 and C>C1 and D>D1, commodity d display time
Number C<C2 and selected number D<D2 and C>C1 and D>D1, and commodity d display number is less than commodity c display number, business
The number of levels at product a, b, c, d current time is respectively E=1, E=3, E=2, E=2, then commodity a, b, c, d current times is non-optimum
First show that weighted value magnitude relationship is:Va<Vd<Vc<Vb, according to the non-preferential display weighted value at commodity a, b, c, d current time
Ascending order is ranked up to each commodity, obtains the first data item display list for being ordered as a, d, c, b;User u1
For active user, the selected record of data item before user's u1 current times includes commodity a, therefore commodity a is counted from first
Show in list and delete according to item, obtain the second data item display list for being ordered as d, c, b;List is shown according to the second data item
In non-preferential display weighted value ascending order show corresponding to each data item, specially in the second data item display row
In table two are chosen according to the ascending order of non-preferential display weighted value(First predetermined number)Commodity are commodity d and business
Product c is in first page(Current display page)Shown successively, when user clicks on second page, list is shown in the second data item
Middle selection commodity b(Because only remaining last commodity b, therefore inadequate first predetermined number of commodity amount chosen)Shown;
In addition, in other embodiments, it can also show that non-preferential display weighted value is ascending in list according to the second data item
Order is shown commodity d, c, b in first page successively.
It is appreciated that the embodiment of method one that refresh data item of the present invention is shown passes through every a default time interval
Obtain the display number of each data item in display data storehouse in default initial time and time interval between current time
And selected number;The non-preferential of each data item current time is further obtained according to display number and selected number
Show weighted value;According to the order ascending non-preferential display weighted value V at each data item current time to each data
Item is ranked up shows list to obtain the first data item, further shows the first data item current with active user in list
The data item that the selected record of data item before moment matches is shown in list from the first data item deletes to obtain second
Data item shows list, finally according to the second data item show non-preferential display weighted value V is ascending in list order according to
Each data item corresponding to secondary display, shown so as to which the small data item of non-preferential display weighted value is entered into row major so that data
The chance for showing the reasonability shown with real-time update, raising data item, display being provided for more data item of item.
Referring to Fig. 4, the embodiment of device one that refresh data item of the present invention is shown includes:
Number acquisition module 201, for obtaining the display number of each data item in display data storehouse and being selected secondary
Number, wherein, display data storehouse is the database of the current each data item to be shown of storage.
Wherein, number acquisition module 201 be specifically used for every a default time interval obtain default initial time with
The display number C of each data item and selected number D in display data storehouse in time interval between current time.
Weighted value acquisition module 202, for the display number obtained according to number acquisition module 201 and selected number
The non-preferential display weighted value of each data item is further obtained, wherein, when selected number is identical, show fewer pair of number
The non-preferential display weighted value answered is smaller.
Wherein, Weight Acquisition module 202 be specifically used for according to number acquisition module 201 obtain display number C and by
Number D is chosen further to obtain the number of levels E at each data item current time, wherein, number of levels E includes first order of magnitude
Other E=1, the second number of levels E=2 and the 3rd number of levels E=3, the display number C of the first number of levels E=1<C1 and by
Choose number D<D1, the display number C of the second number of levels E=2<C2 and selected number D<D2 and C >=C1 and/or D >=
D1, the display number C of the 3rd number of levels E=3<C3 and selected number D<D3 and C >=C2 and/or D >=D2, C1<C2<C3,
D1<D2<D3。
Weight Acquisition module 202 is specifically additionally operable to the display number C of each data item and above-mentioned number of levels E substitutions
Non-preferential display weighted value formula to obtain the non-preferential display weighted value V at each data item current time, weigh by non-preferential display
Shown in weight values formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and B is a positive number more than max { C1-1-D1, C2-1-D2 }.
In other embodiments, Weight Acquisition module 202 is specifically used for the display obtained according to number acquisition module 201
Number C and selected number D obtains the number of levels E at each data item current time, wherein, number of levels E can include n
Individual different number of levels E=i(I=1,2 ..., n), the display number C of the first number of levels E=1<C1 and selected number D<
D1, the display number C of the second number of levels E=2<C2 and selected number D<D2 and C >=C1 and/or D >=D1, the jth order of magnitude
Other E=j(J=3 ..., n)Display number C<Cj and selected number D<Dj and C >=C (j-1) and/or D >=D (j-1), C1<
C2<…<Cn, D1<D2<…<Dn.
Weight Acquisition module 202 is specifically additionally operable to the display number C of each data item and number of levels E substitutions is non-optimum
Weighted value formula is first shown to obtain the non-preferential display weighted value V at each data item current time, non-preferential display weighted value
Shown in formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and B is more than max { C1-1-D1, C2-1-D2 ..., C (n-1) -1-D
(n-1) positive number }.
Display module 203, shown for the small data item of non-preferential display weighted value to be entered into row major.
Referring to Fig. 5, display module specifically includes in the embodiment of device one that refresh data item of the present invention is shown:
First data item shows list acquiring unit 2031, for each data obtained according to Weight Acquisition module 202
The order that the non-preferential display weighted value V at item current time is ascending is ranked up to each data item, to obtain the first number
List is shown according to item.
Second data item shows list acquiring unit 2032, works as the first data item to be shown in list with active user
The data item that the selected record of data item before the preceding moment matches is shown in list from the first data item deletes, to obtain the
Two data item show list.
Data item display unit 2033, for showing non-preferential display weighted value V in list according to above-mentioned second data item
Ascending order shows corresponding each data item successively.Wherein, data item display unit 2033 is specifically used for second
Data item shows that the data item for choosing the first predetermined number in list according to the ascending orders of non-preferential display weighted value V exists
Current display page shown successively, wherein, the first predetermined number is less than or equal to the second data item and shows data in list
The total quantity of item.
It is appreciated that the embodiment number of pass times acquisition module of device one that refresh data item of the present invention is shown is pre- every one
If time interval obtain in default initial time and time interval between current time each data in display data storehouse
The display number and selected number of item;Weighted value acquisition module further obtains according to display number and selected number
The non-preferential display weighted value at each data item current time;Display module is non-preferential aobvious according to each data item current time
Show that the ascending orders of weighted value V are ranked up to each data item and show list, display module to obtain the first data item
The first data item is further shown what is matched in list with the selected record of data item before active user's current time
Data item shows to delete in list from the first data item shows list to obtain the second data item, and last display module is according to second
Data item shows that the order that non-preferential display weighted value V is ascending in list shows corresponding each data item successively, so as to
The small data item of non-preferential display weighted value is entered into row major to show, is capable of the display of continuous refresh data item so that data item
Display with real-time update, improve data item show reasonability, for more data item provide show chance.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this
The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, it is included within the scope of the present invention.
Claims (10)
1. a kind of method that refresh data item is shown, it is characterised in that including:
The display number of each data item and selected number in display data storehouse are obtained, wherein, the display data storehouse is
The database of the current each data item to be shown of storage;
The non-preferential display weighted value of each data item is obtained according to the display number and selected number, wherein, work as institute
State selected number it is identical when, it is described display number it is fewer corresponding to it is non-preferential display weighted value it is smaller;
The small data item of the non-preferential display weighted value is entered into row major to show;
Wherein, it is described to show number for the total degree that the data item is browsed by all users in some time interval, the quilt
It is the total degree that all users are downloaded operation to the data item chosen in some time interval to choose number.
2. according to the method for claim 1, it is characterised in that the display for obtaining each data item in display data storehouse
The step of number and selected number, specifically includes:
The display in default initial time and time interval between current time is obtained every a default time interval
The display number C of each data item and selected number D in database.
3. according to the method for claim 2, it is characterised in that described to be obtained respectively according to display number and selected number
The step of non-preferential display weighted value of individual data item, specifically includes:
The number of levels E at each data item current time is obtained according to the display number C and selected number D, wherein, institute
Stating number of levels E includes n different number of levels E=i (i=1,2 ..., n), the first number of levels E=1 display number C
<C1 and selected number D<D1, the second number of levels E=2 display number C<C2 and selected number D<D2 and C >=C1
And/or D >=D1, jth number of levels E=j (j=3 ..., n) display number C<Cj and selected number D<Dj and C >=C
And/or D >=D (j-1), C1 (j-1)<C2<…<Cn, D1<D2<…<Dn;
It is each to obtain that the display number C of each data item and number of levels E is substituted into non-preferential display weighted value formula
The non-preferential display weighted value V at individual data item current time, shown in the non-preferential display weighted value formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and B is more than max { C1-1-D1, C2-1-D2 ..., C (n-1) -1-D (n-1) }
A positive number.
4. according to the method for claim 3, it is characterised in that the data item that non-preferential display weighted value is small is carried out
The step of preferential display, specifically includes:
Each data item is entered according to the ascending orders of the non-preferential display weighted value V at each data item current time
Row sequence, list is shown to obtain the first data item;
First data item being shown to, being selected record with the data item before active user's current time in list matches
Data item from the first data item show list in delete, with obtain the second data item show list;
Show that the non-preferential order for showing that weighted value V is ascending is shown corresponding successively in list according to second data item
Each data item.
5. according to the method for claim 4, it is characterised in that described to show non-preferential in list show according to the second data item
Show that the step of ascending orders of weighted value V show corresponding each data item successively specifically includes:
First is chosen in second data item shows list according to the ascending orders of non-preferential display weighted value V to preset
The data item of quantity shown successively in current display page, wherein, first predetermined number is less than or equal to the second number
The total quantity of data item in list is shown according to item.
6. according to the method for claim 1, it is characterised in that the display for obtaining each data item in display data storehouse
Include before the step of number and selected number:
Sequencing according to each data item creation time in basic database obtains the second present count from basic database
The data item of amount, to create the display data storehouse, wherein, the basic database is to be stored in before default initial time
The database of each data item created, second predetermined number are less than or equal to the sum of data item in basic database
Amount.
A kind of 7. device that refresh data item is shown, it is characterised in that including:
Number acquisition module, for the display number for obtaining each data item in display data storehouse and selected number, wherein,
The display data storehouse is the database of the current each data item to be shown of storage;
Weighted value acquisition module, for obtaining the non-preferential aobvious of each data item according to the display number and selected number
Show weighted value, wherein, when the selected number is identical, non-preferential display weighted value corresponding to the display number is fewer is more
It is small;
Display module, shown for the small data item of the non-preferential display weighted value to be entered into row major;
Wherein, it is described to show number for the total degree that the data item is browsed by all users in some time interval, the quilt
It is the total degree that all users are downloaded operation to the data item chosen in some time interval to choose number.
8. device according to claim 7, it is characterised in that
The number acquisition module is specifically used for obtaining default initial time and current time every a default time interval
Between time interval in display data storehouse each data item display number C and selected number D.
9. device according to claim 8, it is characterised in that
The Weight Acquisition module is specifically used for the display number C obtained according to the number acquisition module and selected number
D obtains the number of levels E at each data item current time, wherein, the number of levels E includes n different number of levels E=
I (i=1,2 ..., n), the first number of levels E=1 display number C<C1 and selected number D<D1, the second number of levels E
=2 display number C<C2 and selected number D<D2 and C >=C1 and/or D >=D1, jth number of levels E=j (j=3 ...,
N) display number C<Cj and selected number D<Dj and C >=C (j-1) and/or D >=D (j-1), C1<C2<…<Cn, D1<D2
<…<Dn;
The Weight Acquisition module is specifically additionally operable to the display number C of each data item and number of levels E substitutions is non-
It is preferential to show weighted value formula to obtain the non-preferential display weighted value V at each data item current time, the non-preferential display
Shown in weighted value formula formula specific as follows:
V=(E*B)+C
Wherein, B is weight order of magnitude upgrade unit, and B is more than max { C1-1-D1, C2-1-D2 ..., C (n-1) -1-D (n-1) }
A positive number.
10. device according to claim 9, it is characterised in that the display module specifically includes:
First data item shows list acquiring unit, for the non-preferential display weight according to each data item current time
Order ascending value V is ranked up to each data item, and list is shown to obtain the first data item;
Second data item show list acquiring unit, for will first data item display list in active user it is current when
The data item that the selected record of data item before quarter matches is shown in list from the first data item deletes, to obtain the second number
List is shown according to item;
Data item display unit, for showing that non-preferential display weighted value V is ascending in list according to second data item
Order show successively corresponding to each data item.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310142165.8A CN104111961B (en) | 2013-04-22 | 2013-04-22 | The method, apparatus that a kind of refresh data item is shown |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310142165.8A CN104111961B (en) | 2013-04-22 | 2013-04-22 | The method, apparatus that a kind of refresh data item is shown |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104111961A CN104111961A (en) | 2014-10-22 |
| CN104111961B true CN104111961B (en) | 2018-03-09 |
Family
ID=51708756
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310142165.8A Active CN104111961B (en) | 2013-04-22 | 2013-04-22 | The method, apparatus that a kind of refresh data item is shown |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104111961B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106528247B (en) * | 2016-11-30 | 2020-01-07 | 北京小米移动软件有限公司 | Data refresh method and device |
| CN106888252A (en) * | 2017-01-17 | 2017-06-23 | 深圳市金立通信设备有限公司 | The method and terminal of a kind of refresh data |
| CN107122990A (en) * | 2017-03-22 | 2017-09-01 | 广州优视网络科技有限公司 | Using recommendation method, client, server and system |
| CN107895299B (en) * | 2017-11-08 | 2020-12-01 | 浙江执御信息技术有限公司 | Commodity exposure sequencing method and device |
| CN109783052B (en) * | 2018-12-27 | 2021-11-12 | 深圳市轱辘车联数据技术有限公司 | Data sorting method, device, server and computer readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101063947A (en) * | 2006-04-27 | 2007-10-31 | 国际商业机器公司 | Method and system convenient for determining scheduling priority of jobs |
| CN101135996A (en) * | 2006-08-31 | 2008-03-05 | 富士通株式会社 | Apparatus and method for arbitration access |
| CN102474544A (en) * | 2009-07-30 | 2012-05-23 | 高通股份有限公司 | Method and apparatus for customizing a user interface menu |
| CN102508649A (en) * | 2011-09-26 | 2012-06-20 | 鸿富锦精密工业(深圳)有限公司 | Electronic device with function of automatically sequencing icons and sequencing method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101567898A (en) * | 2008-04-25 | 2009-10-28 | 中国移动通信集团公司 | Method, system and device for advertisement putting |
-
2013
- 2013-04-22 CN CN201310142165.8A patent/CN104111961B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101063947A (en) * | 2006-04-27 | 2007-10-31 | 国际商业机器公司 | Method and system convenient for determining scheduling priority of jobs |
| CN101135996A (en) * | 2006-08-31 | 2008-03-05 | 富士通株式会社 | Apparatus and method for arbitration access |
| CN102474544A (en) * | 2009-07-30 | 2012-05-23 | 高通股份有限公司 | Method and apparatus for customizing a user interface menu |
| CN102508649A (en) * | 2011-09-26 | 2012-06-20 | 鸿富锦精密工业(深圳)有限公司 | Electronic device with function of automatically sequencing icons and sequencing method |
Non-Patent Citations (1)
| Title |
|---|
| "清理Windows XP系统桌面上的快捷方式图标";中关村在线;《http://tech.sina.com.cn/s/s/2006-08-07/104361541.shtml》;20060807;1-2页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104111961A (en) | 2014-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104111961B (en) | The method, apparatus that a kind of refresh data item is shown | |
| US11593754B2 (en) | Supply knowledge portal systems and methods | |
| US9760608B2 (en) | Real-time search tuning | |
| CN103823908B (en) | Content recommendation method and server based on user preference | |
| CN104239587B (en) | The method and device that news list refreshes | |
| CN110399420A (en) | A kind of deriving method, electronic equipment and the medium of configurableization Excel format | |
| CN104102648A (en) | User behavior data based interest recommending method and device | |
| KR101096821B1 (en) | How to spread e-book distribution through sharing reading history of children | |
| CN104156390A (en) | Comment recommendation method and system | |
| CN104636406B (en) | A kind of method and apparatus according to user behavior pushed information | |
| CN102651052A (en) | Intelligent combo type dish ordering method | |
| CN106846094A (en) | A kind of method and apparatus for recommending application message based on application has been installed | |
| US20030120641A1 (en) | Method and apparatus for dynamic database creation and interactive analysis | |
| CN106897795A (en) | A kind of inventory forecast method and device | |
| CN110222233A (en) | Video recommendation method, device, server and storage medium | |
| CN107895299A (en) | The exposure sort method and device of a kind of commodity | |
| CN107545491A (en) | A kind of data processing method and device of recommendation information | |
| CN108063983B (en) | Live broadcast label display method and terminal equipment | |
| CN112488854A (en) | Service manager personalized recommendation method and related equipment | |
| CN112540819A (en) | Method for automatically generating recommended detailed page and form page according to query page | |
| CN102243634A (en) | Data statistical method and system | |
| CN103369118A (en) | Incoming call management system and incoming call management method thereof | |
| CN108133088B (en) | Self-adaptive creation method and system of CAD (computer-aided design) model | |
| CN106202513A (en) | Method and apparatus is recommended by the main website that browses of browser | |
| CN105305619B (en) | A kind of three distant collocation methods and device based on power distribution automation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |