Skip to content

Part 3 of Split media store from event cache store#5571

Merged
dragonfly1033 merged 1 commit intodragonfly1033/split_media_db_2from
dragonfly1033/split_media_db_3
Sep 3, 2025
Merged

Part 3 of Split media store from event cache store#5571
dragonfly1033 merged 1 commit intodragonfly1033/split_media_db_2from
dragonfly1033/split_media_db_3

Conversation

@dragonfly1033
Copy link
Contributor

@dragonfly1033 dragonfly1033 commented Aug 22, 2025

Read #5568 . This is part 3.

Contains:

  • Instantiate MediaStores and use where required.
  • Public API changes documented in changelogs (optional)

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

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 22, 2025

CodSpeed Performance Report

Merging #5571 will not alter performance

Comparing dragonfly1033/split_media_db_3 (b562ceb) with main (7767ef6)1

Summary

✅ 49 untouched benchmarks

Footnotes

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

@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_3 branch 3 times, most recently from 2db615b to fb1fc3e Compare August 22, 2025 17:57
@dragonfly1033 dragonfly1033 reopened this Aug 26, 2025
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from 745891b to 79160d6 Compare August 27, 2025 12:37
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_3 branch from fb1fc3e to f18c9da 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 removed request for a team September 1, 2025 10:33
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from 79160d6 to aa0cf8b Compare September 3, 2025 09:52
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_3 branch from f18c9da to bdd6b20 Compare September 3, 2025 09:53
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_2 branch from aa0cf8b to 2f5de97 Compare September 3, 2025 12:10
@dragonfly1033 dragonfly1033 force-pushed the dragonfly1033/split_media_db_3 branch from bdd6b20 to b562ceb Compare September 3, 2025 12:10
@dragonfly1033 dragonfly1033 merged commit d441e70 into dragonfly1033/split_media_db_2 Sep 3, 2025
8 checks passed
@dragonfly1033 dragonfly1033 deleted the dragonfly1033/split_media_db_3 branch September 3, 2025 14:11
dragonfly1033 added a commit that referenced this pull request Sep 9, 2025
Part 3 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