mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +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:
@@ -50,8 +50,8 @@ var stashID = models.StashID{
|
||||
StashID: "StashID",
|
||||
Endpoint: "Endpoint",
|
||||
}
|
||||
var stashIDs = []*models.StashID{
|
||||
&stashID,
|
||||
var stashIDs = []models.StashID{
|
||||
stashID,
|
||||
}
|
||||
|
||||
const image = "aW1hZ2VCeXRlcw=="
|
||||
@@ -155,8 +155,8 @@ func createFullJSONPerformer(name string, image string) *jsonschema.Performer {
|
||||
DeathDate: deathDate.String,
|
||||
HairColor: hairColor,
|
||||
Weight: weight,
|
||||
StashIDs: []*models.StashID{
|
||||
&stashID,
|
||||
StashIDs: []models.StashID{
|
||||
stashID,
|
||||
},
|
||||
IgnoreAutoTag: autoTagIgnored,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user