From b7ff3ad1db9706b2fb0e79ecc25d3cbc6b555190 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 5 Sep 2018 09:01:56 -0700 Subject: [PATCH] Limit to 1000 items until iterative load plumbed Signed-off-by: James Ketrenos --- server/routes/photos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/photos.js b/server/routes/photos.js index 23c17c3..7fbe86b 100755 --- a/server/routes/photos.js +++ b/server/routes/photos.js @@ -55,7 +55,7 @@ router.get("/*", function(req, res/*, next*/) { } } - let query = "SELECT * FROM photos WHERE path LIKE :path " + index + " ORDER BY taken " + order + ",id " + order;// + " LIMIT " + (limit * 2 + 1); + let query = "SELECT * FROM photos WHERE path LIKE :path " + index + " ORDER BY taken " + order + ",id " + order + " LIMIT 1000";// + " LIMIT " + (limit * 2 + 1); return photoDB.sequelize.query(query, { replacements: { cursor: cursor,