perf issue around EntityGateway #115

Closed
opened 2 years ago by jake · 1 comments
jake commented 2 years ago
Owner

so due to all my passing around of the singular entity gateway structure I am pretty sure I am hilariously limiting myself to only 1 db transaction at a time like a total moron.

InMemoryGateway and PostgreGateway are both designed to be Clone but due to my PEAK ITEMREFACTOR I had to remove that trait to get transactions to work.

not that this used to be fast. for that to happen I would need to pass a clone of the gateway into the handler functions rather than a reference to the main one.

so due to all my passing around of the singular entity gateway structure I am pretty sure I am hilariously limiting myself to only 1 db transaction at a time like a total moron. `InMemoryGateway` and `PostgreGateway` are both designed to be `Clone` but due to my PEAK ITEMREFACTOR I had to remove that trait to get transactions to work. not that this used to be fast. for that to happen I would need to pass a clone of the gateway into the handler functions rather than a reference to the main one.
jake closed this issue 2 years ago
Poster
Owner

closed by #117

closed by http://git.sharnoth.com/jake/elseware/pulls/117
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.