mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-26 08:54:42 +01:00
Reduce list item count per DB entry
This commit is contained in:
parent
24ee630d3a
commit
fed1561860
1 changed files with 4 additions and 8 deletions
|
@ -81,11 +81,9 @@ class AppDb {
|
|||
class AppDbFileEntry {
|
||||
static const indexName = "fileStore_path_index";
|
||||
static const keyPath = ["path", "index"];
|
||||
static const maxDataSize = 250;
|
||||
static const maxDataSize = 160;
|
||||
|
||||
AppDbFileEntry(this.path, this.index, this.data) {
|
||||
assert(this.data.length <= maxDataSize);
|
||||
}
|
||||
AppDbFileEntry(this.path, this.index, this.data);
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
|
@ -120,11 +118,9 @@ class AppDbFileEntry {
|
|||
class AppDbAlbumEntry {
|
||||
static const indexName = "albumStore_path_index";
|
||||
static const keyPath = ["path", "index"];
|
||||
static const maxDataSize = 250;
|
||||
static const maxDataSize = 160;
|
||||
|
||||
AppDbAlbumEntry(this.path, this.index, this.album) {
|
||||
assert(this.album.items.length <= maxDataSize);
|
||||
}
|
||||
AppDbAlbumEntry(this.path, this.index, this.album);
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
|
|
Loading…
Add table
Reference in a new issue