Skip to content

Commit

Permalink
📈 Ask db for unique users
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianJoe committed May 14, 2020
1 parent 31d3cd0 commit 6829e8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbstats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ echo ""

echo "Breaking:"
aws dynamodb scan --table-name ${table_prefix}-subscriptions --filter-expression "breaking = :br" --expression-attribute-values '{":br": {"N": "1"}}' --select "COUNT" | jq .Count
echo ""

echo "Unique:"
aws dynamodb scan --table-name ${table_prefix}-subscriptions --filter-expression "morning = :mo or evening = :ev or breaking = :br" --expression-attribute-values '{":mo": {"N": "1"}, ":ev": {"N": "1"}, ":br": {"N": "1"}}' --select "COUNT" | jq .Count
echo ""

echo "Analytics enabled: "
aws dynamodb scan --table-name ${table_prefix}-tracking --filter-expression "enabled = :en" --expression-attribute-values '{":en": {"BOOL": true}}' --select "COUNT" | jq .Count
Expand Down

0 comments on commit 6829e8c

Please sign in to comment.