feat: load task to database

This commit is contained in:
Alexander Navarro 2025-05-07 16:42:25 -04:00
parent 7be435332c
commit f288527ea4

View file

@ -63,6 +63,7 @@ impl TaskManager {
.map(|value| Ok((value.get_key(), serde_json::to_string(value)?))) .map(|value| Ok((value.get_key(), serde_json::to_string(value)?)))
.collect(); .collect();
// FIXME: create chunk based insert by SQLITE_QUERY_LIMIT / N° of binds
builder.push_values( builder.push_values(
args?.into_iter().take(SQLITE_QUERY_LIMIT / 3), args?.into_iter().take(SQLITE_QUERY_LIMIT / 3),
|mut builder, item| { |mut builder, item| {