You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: utils/temptablecache.go
+16-20
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,16 @@ import (
6
6
7
7
// TempTableCache is a thread-safe cache for storing temporary table mappings
8
8
varTempTableCache=&CacheSimple{
9
-
data: make(map[string]interface{}),
10
-
maxSize: 10,
9
+
Data: make(map[string]interface{}),
10
+
MaxSize: 100, // Note: this might need some tweaking if in a highly concurrent space...which is not the case now. Setting it too high risks too many temp tables..filling db.
11
11
accessOrder: make([]string, 0),
12
12
}
13
13
14
14
// Defines a thread-safe in-memory cache
15
15
typeCacheSimplestruct {
16
-
datamap[string]interface{}
16
+
Datamap[string]interface{}
17
+
MaxSizeint
17
18
mu sync.RWMutex
18
-
maxSizeint
19
19
accessOrder []string// Keeps track of insertion order for cleanup
0 commit comments