Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.18 KB | None | 0 0
  1. 1. Апдейт страниц у которых нет weight
  2.  
  3. cake daemon -q manual_update -t queue -o "weight_update (weight IS NULL) AND (free_places > 0) AND (ext_links <= 10) AND (sape_price <= 25) GROUP by domain_id ORDER by free_places ASC, ext_links ASC, sape_price ASC LIMIT 2000"
  4. _____________________________________________________________________________________________________________________________________________________
  5.  
  6. 2. Пробиваем Google Cache страниц у которых пробит weight
  7.  
  8. cake daemon -q manual_update -t queue -o "google_cache (weight > 0) AND (free_places > 0) AND (ext_links <= 10) GROUP by domain_id ORDER by weight ASC"
  9.  
  10. _____________________________________________________________________________________________________________________________________________________
  11.  
  12. 3. Пробиваем все параметры для страниц, у которых есть недельный кеш
  13.  
  14. cake daemon -q manual_update -t queue -o "index_google (google_cache >= DATE_SUB(NOW(), INTERVAL 7 DAY)) AND ((index_google IS NULL) OR (last_update_index_google < DATE_SUB(NOW(), INTERVAL 7 DAY))) ORDER by index_google ASC, last_update_index_google ASC"
  15.  
  16. cake daemon -q manual_update -t queue -o "index_yandex (google_cache >= DATE_SUB(NOW(), INTERVAL 7 DAY)) AND ((index_yandex IS NULL) OR (last_update_index_yandex < DATE_SUB(NOW(), INTERVAL 10 DAY))) ORDER by index_yandex ASC, last_update_index_yandex ASC"
  17.  
  18. cake daemon -q manual_update -t queue -o "index_google_supplement (google_cache >= DATE_SUB(NOW(), INTERVAL 7 DAY)) AND ((snot IS NULL) OR (last_update_snot < DATE_SUB(NOW(), INTERVAL 10 DAY))) ORDER by snot ASC, last_update_snot ASC"
  19.  
  20. cake daemon -q manual_update -t queue -o "text_count (google_cache >= DATE_SUB(NOW(), INTERVAL 7 DAY)) AND ((text_symbols IS NULL) OR (last_update_text_symbols < DATE_SUB(NOW(), INTERVAL 30 DAY))) ORDER by text_symbols ASC, last_update_text_symbols ASC"
  21.  
  22. cake daemon -q manual_update -t queue -o "has_stopwords (google_cache >= DATE_SUB(NOW(), INTERVAL 7 DAY)) AND ((stopwords IS NULL) OR (last_update_stopwords < DATE_SUB(NOW(), INTERVAL 30 DAY))) ORDER by stopwords ASC, last_update_stopwords ASC"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement