Adds index on cob cache for issues and patches
Queries on the cob cache are usually filtering by repo id, which is costly without an index as it involves a full table scan.
2 files changed
+10
-4
990e22ac
→
5741bafa
modified crates/radicle/src/cob/cache.rs
@@ -28,6 +28,7 @@ const DB_WRITE_TIMEOUT: time::Duration = time::Duration::from_secs(6);
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -466,10 +467,13 @@ mod tests {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
added crates/radicle/src/cob/cache/migrations/3.sql
@@ -0,0 +1,2 @@
| + | |
| + | |