storj / team-metainfo

GNU Affero General Public License v3.0
0 stars 0 forks source link

Migrate objects metadata from StreamMeta to StreamInfo #46

Open mniewrzal opened 2 years ago

mniewrzal commented 2 years ago

After metainfo refactoring metadata column from objects table is storing marshaled StreamMeta which contains StreamInfo. StreamMeta is duplicating data that we have directly in objects table so we need to do live migration and:

mniewrzal commented 2 years ago

Commented by Michal Niewrzal

It looks that we can save ~70 bytes per object.

mniewrzal commented 2 years ago

Commented by Michal Niewrzal

We need to remember that StreamMeta contains metadata key and nonce and its also need to be migrated to table column.