Skip to content

Use the write db pool when fetching project context for write operations#5018

Merged
imsdu merged 3 commits intoBlueBrain:masterfrom
imsdu:5016-fetch-context-write-pool
Jun 6, 2024
Merged

Use the write db pool when fetching project context for write operations#5018
imsdu merged 3 commits intoBlueBrain:masterfrom
imsdu:5016-fetch-context-write-pool

Conversation

@imsdu
Copy link
Collaborator

@imsdu imsdu commented Jun 5, 2024

Fixes #5016


override def onRead(ref: ProjectRef): IO[ProjectContext] =
fetchProject(ref).flatMap {
fetchProject(ref, false).flatMap {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named parameter may be a bit clearer for the flag. Same below

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use them here with a function passed as a parameter

@imsdu imsdu merged commit 82c4bea into BlueBrain:master Jun 6, 2024
@imsdu imsdu deleted the 5016-fetch-context-write-pool branch June 6, 2024 14:45
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.

Fetching the project context during write operations should be done on the write pool

2 participants