Skip to content

Part 2 of Split media store from event cache store#5569

Merged
dragonfly1033 merged 3 commits intodragonfly1033/split_media_dbfrom
dragonfly1033/split_media_db_2
Sep 3, 2025
Merged

Part 2 of Split media store from event cache store#5569
dragonfly1033 merged 3 commits intodragonfly1033/split_media_dbfrom
dragonfly1033/split_media_db_2

Conversation

@dragonfly1033
Copy link
Contributor

@dragonfly1033 dragonfly1033 commented Aug 22, 2025

Read #5568 . This is part 2.

Contains:

  • Split SqliteMediaStore from SqliteEventCacheStore.
  • Split MemoryMediaStore from MemoryStore.
  • Split IndexeddbMediaStore from IndexxeddbEventCacheStore.

Reminder for my own sanity:
Do not merge until part 3 #5571 is merged.

  • Public API changes documented in changelogs (optional)

Signed-off-by: Shrey Patel shreyp@element.io

@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from 10bcf5c to 745891b Compare August 22, 2025 14:33
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db branch from 561c12e to cef5dd3 Compare August 27, 2025 12:36
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from 745891b to 79160d6 Compare August 27, 2025 12:37
@dragonfly1033 dragonfly1033 marked this pull request as ready for review September 1, 2025 10:33
@dragonfly1033 dragonfly1033 requested a review from a team as a code owner September 1, 2025 10:33
@dragonfly1033 dragonfly1033 requested review from Hywan and bnjbvr and removed request for a team and bnjbvr September 1, 2025 10:33
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db branch from cef5dd3 to 7d3c4ad Compare September 3, 2025 09:52
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from 79160d6 to aa0cf8b Compare September 3, 2025 09:52
Shrey Patel added 2 commits September 3, 2025 12:54
Split `MemoryMediaStore` from `MemoryStore`.
Split `IndexeddbMediaStore` from `IndexxeddbEventCacheStore`.
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db branch from 7d3c4ad to 11fc140 Compare September 3, 2025 12:10
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from aa0cf8b to 2f5de97 Compare September 3, 2025 12:10
Part 3 of Split media store from event cache store
@dragonfly1033 dragonfly1033 merged commit faa4277 into dragonfly1033/split_media_db Sep 3, 2025
7 checks passed
@dragonfly1033 dragonfly1033 deleted the dragonfly1033/split_media_db_2 branch September 3, 2025 14:13
dragonfly1033 added a commit that referenced this pull request Sep 3, 2025
Part 2 of Split media store from event cache store
dragonfly1033 added a commit that referenced this pull request Sep 3, 2025
Part 2 of Split media store from event cache store
dragonfly1033 pushed a commit that referenced this pull request Sep 3, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Sep 3, 2025

CodSpeed Performance Report

Merging #5569 will not alter performance

Comparing dragonfly1033/split_media_db_2 (d441e70) with main (0bed6af)1

Summary

✅ 49 untouched benchmarks

Footnotes

  1. No successful run was found on dragonfly1033/split_media_db (d441e70) during the generation of this report, so main (0bed6af) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

dragonfly1033 pushed a commit that referenced this pull request Sep 3, 2025
dragonfly1033 pushed a commit that referenced this pull request Sep 3, 2025
dragonfly1033 pushed a commit that referenced this pull request Sep 9, 2025
dragonfly1033 pushed a commit that referenced this pull request Sep 9, 2025
dragonfly1033 pushed a commit that referenced this pull request Sep 9, 2025
dragonfly1033 added a commit that referenced this pull request Sep 9, 2025
Part 2 of Split media store from event cache store
Hywan pushed a commit that referenced this pull request Sep 10, 2025
This PR is a start to the process of splitting the media store from the
event cache store. #5410

It contains:
* Split `MediaStore` trait from `EventCacheStore`. 
* Rename `EventCacheStoreMedia` to `MediaStoreInner`. 
* Move relevant tests into `MediaStoreIntegrationTests`.

This will be done over 3 PR's (reviewing 1, 2, 3 then merging 3 into 2
into 1).

A reminder comment for my own sanity:
This PR will not pass tests until after merging.

Current state of this PR:
- [x] Step 1 reviewed #5568
- [x] Step 2 reviewed #5569 
- [x] Step 3 reviewed #5571 
- [x] Step 3 merged into Step 2
- [x] Step 2 merged into Step 1
- [ ] Add changes to changelog.
- [ ] Ready to merge 🎉 

Note, may also want to: 
* Re-organize file structure
* Split/refactor benchmarks namely `benchmarks/benches/event_cache.rs`

<!-- description of the changes in this PR -->

- [ ] Public API changes documented in changelogs (optional)

<!-- Sign-off, if not part of the commits -->
<!-- See CONTRIBUTING.md if you don't know what this is -->
Signed-off-by: Shrey Patel shreyp@element.io

---------

Co-authored-by: Shrey Patel <shreyp@element.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants