Fix high memory usage during search (#798)

* Fix high memory usage during search

* Fix settings lag

* Fix clippy + fmt
This commit is contained in:
Geometrically
2023-12-12 20:11:56 -07:00
committed by GitHub
parent 00e55b1874
commit f53b6b550f
6 changed files with 108 additions and 162 deletions

View File

@@ -494,6 +494,12 @@ impl Version {
where
E: sqlx::Acquire<'a, Database = sqlx::Postgres>,
{
let version_ids = version_ids
.iter()
.unique()
.copied()
.collect::<Vec<VersionId>>();
use futures::stream::TryStreamExt;
if version_ids.is_empty() {