mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-22 12:01:52 -07:00
Add bulk import optimization: track_lookup cache, batch inserts, BulkSubmitter
This commit is contained in:
parent
0ec7b458cc
commit
ae373a7090
21 changed files with 1296 additions and 125 deletions
|
|
@ -101,6 +101,16 @@ type DB interface {
|
|||
MergeAlbums(ctx context.Context, fromId, toId int32, replaceImage bool) error
|
||||
MergeArtists(ctx context.Context, fromId, toId int32, replaceImage bool) error
|
||||
|
||||
// Track Lookup Cache
|
||||
|
||||
GetTrackLookup(ctx context.Context, key string) (*TrackLookupResult, error)
|
||||
SaveTrackLookup(ctx context.Context, opts SaveTrackLookupOpts) error
|
||||
InvalidateTrackLookup(ctx context.Context, opts InvalidateTrackLookupOpts) error
|
||||
|
||||
// Batch
|
||||
|
||||
SaveListensBatch(ctx context.Context, opts []SaveListenOpts) (int64, error)
|
||||
|
||||
// Etc
|
||||
|
||||
ImageHasAssociation(ctx context.Context, image uuid.UUID) (bool, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue