Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Minimize costs of updating the DB in odysseus:home.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cochrane committed Sep 19, 2018
1 parent e8cb039 commit 5d8b839
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/pages/home
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and I take advantage of this page to promote project links. #}
<!DOCTYPE html>

{# Ensure the appropriate recommendations are downloaded. #}
{% query %}BEGIN TRANSACTION;{% endquery %}
{% query %}SELECT * FROM recommendations;
{% empty %}
{% fetch %}
Expand Down Expand Up @@ -34,6 +35,7 @@ and I take advantage of this page to promote project links. #}
{% query %}INSERT OR REPLACE INTO visit_counts(url, count)
VALUES ({{ uri }}, {{ count }});{% endquery %}
{% endquery %}
{% query %}END TRANSACTION;{% endquery %}

<html>
<head>
Expand Down

0 comments on commit 5d8b839

Please sign in to comment.