reduce db queries for favorite list
[mygpo.git] / bin / touch-views.sh
blob36759da7f3e4eba02f4f3203935f77ab91422f2d
1 #!/bin/bash
3 DIR=`dirname $0`
4 DB=`$DIR/../mygpo/print-couchdb.py`
6 echo -n "Touching View core ... "
7 curl -s -X GET ${DB}/_design/core/_view/podcasts_by_id?limit=0 > /dev/null
8 echo done
10 echo -n "Touching View directory ... "
11 curl -s -X GET ${DB}/_design/directory/_view/toplist?limit=0 > /dev/null
12 echo done
14 echo -n "Touching View users ... "
15 curl -s -X GET ${DB}/_design/users/_view/users_by_oldid?limit=0 > /dev/null
16 echo done
18 echo -n "Touching View django_couchdb_utils ... "
19 curl -s -X GET ${DB}/_design/django_couchdb_utils/_view/emails?limit=0 > /dev/null
20 echo done
22 echo -n "Touching View share ... "
23 curl -s -X GET ${DB}/_design/share/_view/lists_by_rating?limit=0 > /dev/null
24 echo done
26 echo -n "Touching View maintenance ... "
27 curl -s -X GET ${DB}/_design/maintenance/_view/missing_slugs?limit=0 > /dev/null
28 echo done