Commit 3a98167
committed
indexer: Cache scanner table
During the indexing cycle many operations try to read information
from the scanner table, this can occasionally lead to resource
contention depending on the DB. This reads the table into memory when
the indexer store is instanciated and uses when asked for scanner info.
Signed-off-by: crozzy <[email protected]>1 parent 49f1591 commit 3a98167
File tree
13 files changed
+237
-290
lines changed- datastore/postgres
13 files changed
+237
-290
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 42 | | |
50 | 43 | | |
51 | 44 | | |
| |||
68 | 61 | | |
69 | 62 | | |
70 | 63 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
82 | 67 | | |
83 | 68 | | |
84 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 41 | | |
49 | 42 | | |
50 | 43 | | |
| |||
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
73 | 58 | | |
74 | 59 | | |
75 | 60 | | |
| |||
0 commit comments