Commit 16d5e65
feat(cat-voices): database queries migration and optimization (#3614)
* docs: capture initial times
* chore: remove cacheDocument
* turn off logging
* chore: use debugPrint instead of logger
* feat: bulk documents save
* batching sync
* chore: move exact ref resoling to getDocumentData instead of index
* fix: DocumentRepository
* chore: simplify getting documents data
* remove getAllDocumentsRefs and getCachedDocumentsRefs from DocumentRepository. Index is only available in DocumentDataRemoteSource
* chore: update docs
* simplified document index endpoint
* remove randomness from LocalCatGateway
* indexing by batch size
* wip: filtering by types
* Rework filtering refs + checking all refs if already cached in parallel
* docs
* update indexing.csv
* update indexing csv
* chore: cleanup
* trailing new line
* chore
* move performance tab to docs
* bulk saving typed docs in parallel
* chore: revert hardcoded timestamp
* chore: typos
* split _sync into smaller functions + add documentation
* little refactor
* fix: analyzer
* initial v2 tables
* wip
* wip
* feat: database migration
* chore: cleanup
* bump batch size
* cleanup
* chore: remove defensive content decoding
* chore: daos
* spelling
* saveAll
* test on platform
* chore: update build scripts
* feat: DocumentsV2Dao methods
* simple proposals pagination query
* chore: create a JoinedProposalBriefEntity
* rename method
* feat: exclude hidden proposals
* more tests
* renaming and splitting logic into smaller parts
* feat: per language strategy
* remove CatalystDatabaseLanguage in favor of raw queries as they are easier to mange
* remove Index Strategy Documentation
* handle case where ref is empty
* migration now includes indexes
* use v2 documents table for saveAll and isCachedBulk
* adds ActionType to JoinedProposalBriefEntity
* adds versionIds to JoinedProposalBriefEntity
* comments count
* adds isFavorite to JoinedProposalBriefEntity
* add template to JoinedProposalBriefEntity
* adds documentsLocalMetadata table for auto updates
* Update docs
* use v2 proposals query for discovery most recent section
* feat: simplify most recent proposals section
* add proposal fav status for v2 tables
* local proposal fav status update
* update fav state locally for faster feedback
* self review
* fix tests
* update times
* fix: analyzer
* more migration test data
* clean up constructors
* cleanup
* fix: template tests
* spelling
* fix: spelling
* chore: PR review adjustments
* fix: add discovery specific colors (#3637)
* fix code-generator earthly target
* use logger in migration + wrap in transaction
---------
Co-authored-by: Ryszard Schossler <[email protected]>1 parent a54ab8d commit 16d5e65
File tree
40 files changed
+4742
-640
lines changed- .config/dictionaries
- catalyst_voices
- apps/voices/lib
- pages/discovery/sections
- most_recent_proposals
- widgets
- widgets/cards/proposal
- docs/performance
- packages/internal
- catalyst_voices_blocs/lib/src/discovery
- catalyst_voices_brands/lib/src
- theme_extensions
- themes
- catalyst_voices_models/lib/src
- pagination
- proposal/data
- catalyst_voices_repositories
- drift_schemas/catalyst_database
- lib/src
- database
- dao
- migration
- model
- table
- document
- source
- proposal
- test/src
- database/dao
- document
- catalyst_voices_services/lib/src
- documents
- proposal
- catalyst_voices_view_models/lib/src/proposal
40 files changed
+4742
-640
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
Lines changed: 3 additions & 90 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 10 | + | |
98 | 11 | | |
99 | 12 | | |
0 commit comments