From 2754104794f0d56dd8c9b337d51b9d8df69e8199 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Thu, 18 Aug 2016 13:45:18 -0700 Subject: [PATCH] Limit number of imported places, not number of imported rows. Default to 1000. --- src/datomish/places/import.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datomish/places/import.cljc b/src/datomish/places/import.cljc index 44aa7087..d2bf336d 100644 --- a/src/datomish/places/import.cljc +++ b/src/datomish/places/import.cljc @@ -93,7 +93,7 @@ places-connection ["SELECT DISTINCT p.id AS id, p.url AS url, p.title AS title, p.visit_count, p.last_visit_date, p.guid, hv.visit_date - FROM moz_places AS p LEFT JOIN moz_historyvisits AS hv ON p.id = hv.place_id + FROM (SELECT * FROM moz_places LIMIT 1000) AS p LEFT JOIN moz_historyvisits AS hv ON p.id = hv.place_id WHERE p.hidden = 0 ORDER BY p.id, hv.visit_date"]))] (