mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
[Files Refactor] Performance tuning (#2819)
* Load scene relationships on demand * Load image relationships on demand * Load gallery relationships on demand * Add dataloaden * Use dataloaders * Use where in for other find many functions
This commit is contained in:
@@ -174,3 +174,31 @@ var (
|
||||
idColumn: goqu.T(fingerprintTable).Col(idColumn),
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
performerTableMgr = &table{
|
||||
table: goqu.T(performerTable),
|
||||
idColumn: goqu.T(performerTable).Col(idColumn),
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
studioTableMgr = &table{
|
||||
table: goqu.T(studioTable),
|
||||
idColumn: goqu.T(studioTable).Col(idColumn),
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
tagTableMgr = &table{
|
||||
table: goqu.T(tagTable),
|
||||
idColumn: goqu.T(tagTable).Col(idColumn),
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
movieTableMgr = &table{
|
||||
table: goqu.T(movieTable),
|
||||
idColumn: goqu.T(movieTable).Col(idColumn),
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user