Split up batched mod data query to speed up dump

This commit is contained in:
2022-06-05 02:58:11 -04:00
parent d72ed943ce
commit 09c87fa93b
2 changed files with 119 additions and 35 deletions

View File

@@ -13,7 +13,7 @@ pub async fn dump_mod_data(pool: &sqlx::Pool<sqlx::Postgres>, dir: &str, updated
let mut last_id = None;
loop {
let mods =
game_mod::batched_get_with_cells(&pool, page_size, last_id, "Skyrim.esm", 1, updated_after).await?;
game_mod::batched_get_with_cells_and_files(&pool, page_size, last_id, "Skyrim.esm", 1, updated_after).await?;
if mods.is_empty() {
break;
}