isar-community / isar

Extremely fast, easy to use, and fully async NoSQL database for Flutter
https://isar-community.dev
Apache License 2.0
126 stars 14 forks source link

[v4] Allow indexing lists #83

Open CaptainDario opened 3 months ago

CaptainDario commented 3 months ago

Is your feature request related to a problem? Please describe. Isar v3 allowed indexing lists which was important to me because performance could be dramatically increased by using it.

However, when I try using a List that has an index in v4 I encounter

List properties cannot be indexed
package:database_builder/src/tatoeba_to_isar/data_classes.dart:43:16
   ╷
43 │   List<String> mecabBaseForms;
   │                ^^^^^^^^^^^^^^
   │

Describe the solution you'd like Allow indexing lists in v4

Describe alternatives you've considered Do not use indexes for lists. However, before migrating my whole code base I would like to know if this has severe impacts on performance?

Version