From 3c00bfae896f920cdfffb0c4b140f91afe6529c2 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 6 Oct 2022 11:04:51 +0100 Subject: [PATCH] Query all videos at once and batch update. --- .../me/kavin/piped/utils/DatabaseHelper.java | 9 +++++ .../me/kavin/piped/utils/DownloaderImpl.java | 1 + .../me/kavin/piped/utils/ResponseHelper.java | 38 +++++++++++++++++-- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/DatabaseHelper.java b/src/main/java/me/kavin/piped/utils/DatabaseHelper.java index a0b5b8f..56b14a1 100644 --- a/src/main/java/me/kavin/piped/utils/DatabaseHelper.java +++ b/src/main/java/me/kavin/piped/utils/DatabaseHelper.java @@ -74,6 +74,15 @@ public class DatabaseHelper { return s.createQuery(cr).uniqueResult(); } + public static List