fix(redis): speed up large key scans
This commit is contained in:
1 parent
ff79ec05ad
commit
fc9f97b6b5
9 files changed
+154
-52
No files matched your search
@@ -35,9 +35,19 @@ pub async fn redis_scan_keys_batch(
|
||||
pattern: String,
|
||||
count: usize,
|
||||
max_iterations: usize,
|
||||
include_types: Option<bool>,
|
||||
) -> Result<RedisScanResult, String> {
|
||||
dbx_core::redis_ops::redis_scan_keys_batch_core(&state, &connection_id, db, cursor, &pattern, count, max_iterations)
|
||||
.await
|
||||
dbx_core::redis_ops::redis_scan_keys_batch_core(
|
||||
&state,
|
||||
&connection_id,
|
||||
db,
|
||||
cursor,
|
||||
&pattern,
|
||||
count,
|
||||
max_iterations,
|
||||
include_types.unwrap_or(true),
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in new issue
Block a user