isar / isar/hive

Isn't the `typeId` range too limiting?

Open
#718 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

According to https://docs.hivedb.dev/#/custom-objects/type_adapters , the max `typeId` of Type Adapters is 223.
If I understand correctly, this limits the number of different entity types that can be used in an application to 223. Even if this limit is sensible for number of "concurrent" entity types, as the application evolves some old types may be deprecated and replaced by new ones. If I want to allow migrating from old versions, I can't re-use older `typeId`s.

So, is it correct that when I get to `typeId` of 223, my only option for adding a new entity type is to no longer support migrating data from old versions that might still use a `typeId` of 0?

The same question also applies to the field numbers (max is 255, according to https://docs.hivedb.dev/#/custom-objects/generate_adapter ), although in this case I suppose there can be workarounds, like creating a new entity class (with a new `typeId`) and copying the data over to a new box.

Did I misunderstand anything?
if not, are there plans to increase these limits?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.