Limit to 1000 items until iterative load plumbed

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-05 09:01:56 -07:00
parent 59bbde7e7d
commit b7ff3ad1db

View File

@ -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,