If itemIDs
has 20 strings in it, how many DB queries does the following code result in?
func GetAvatarItems(ctx context.Context, nk runtime.NakamaModule, itemIDs ...string) (*AvatarItems, error) {
storageReads := make([]*runtime.StorageRead, len(itemIDs))
for i, itemID := range itemIDs {
storageReads[i] = &runtime.StorageRead{
Collection: AvatarItemCollection,
Key: itemID,
}
}
objects, err := nk.StorageRead(ctx, storageReads)
if err != nil {
return nil, err
}