Limit to 1000 items until iterative load plumbed
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
59bbde7e7d
commit
b7ff3ad1db
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user