anonīms Posted November 28, 2010 Report Share Posted November 28, 2010 Kā vislabāk būtu veidot meklēšanas topu? search_keywords id, keyword. Un tad vnk katru keywordu insertot un beigās ar group by vilkt ārā? Jūsu varianti? Quote Link to comment Share on other sites More sharing options...
mefisto Posted November 28, 2010 Report Share Posted November 28, 2010 Es to visu glabātu iekš tabulas: CREATE TABLE search_stats ( id integer PRIMARY KEY, query varchar(128) NOT NULL, weekly integer, monthly integer, total integer, last timestamp ); Quote Link to comment Share on other sites More sharing options...
anonīms Posted November 28, 2010 Author Report Share Posted November 28, 2010 Kam domātas kollonas monthly un weekly ? Quote Link to comment Share on other sites More sharing options...
mefisto Posted November 29, 2010 Report Share Posted November 29, 2010 Nuu .. tos es tur iebāzu ar domu, ka iespējams ir vērts paralēli glabāt arī nedēļas un mēneša search status. Ja jau vāc statistiku par search querijiem , tad vāc tā, lai ir ko ķidāt. Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted November 29, 2010 Report Share Posted November 29, 2010 (edited) mefisto -> tie tur ir galiigi lieki. JO pec 8 dienam vairs neuzinasi cik sonedelj ir bijushi pieprasijumi (nedeljai, anlogiski menesim) ja gribi lai ir ko kjidat tad jaglaba VISI pieprasijumi kopa ar datumu (nebuus jau nemaz tik trki ka sakuma vretu likties -> neliela saita 1M pieprsijumu nemaz tik atri nesavaaksies, un 1M musdienu DB nav nekas tragisks .. Edited November 29, 2010 by Grey_Wolf Quote Link to comment Share on other sites More sharing options...
mefisto Posted November 29, 2010 Report Share Posted November 29, 2010 njā .. arī taisnība. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.