Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Split out stream store #2924

Merged
merged 4 commits into from
Mar 1, 2018
Merged

Split out stream store #2924

merged 4 commits into from
Mar 1, 2018

Conversation

erikjohnston
Copy link
Member

No description provided.

@erikjohnston erikjohnston force-pushed the erikj/split_stream_store branch from a1702ed to f793bc3 Compare March 1, 2018 15:13
limit = max(limit, MAX_STREAM_SIZE)
else:
limit = MAX_STREAM_SIZE
class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
Copy link
Member

Choose a reason for hiding this comment

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

for the other abstract worker stores, you've documented the methods that need to be implemented. Could do it here too?

Copy link
Member Author

Choose a reason for hiding this comment

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

(done)

@@ -552,11 +421,13 @@ def get_room_events_max_id(self, room_id=None):
)
defer.returnValue("t%d-%d" % (topo, token))

@abc.abstractmethod
def get_room_max_stream_ordering(self):
Copy link
Member

Choose a reason for hiding this comment

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

it might be more obvious if these were near the top of the class (with some comments about what they do...)

@@ -148,14 +148,6 @@ def __init__(self, db_conn, hs):
stream_column="stream_ordering",
max_value=events_max,
)
self._events_stream_cache = StreamChangeCache(
Copy link
Member

Choose a reason for hiding this comment

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

is the call to _get_cache_dict redundant now?

@richvdh richvdh assigned erikjohnston and unassigned richvdh Mar 1, 2018
@erikjohnston erikjohnston assigned richvdh and unassigned erikjohnston Mar 1, 2018
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

@richvdh richvdh assigned erikjohnston and unassigned richvdh Mar 1, 2018
@erikjohnston erikjohnston merged commit 9278919 into develop Mar 1, 2018
@erikjohnston erikjohnston deleted the erikj/split_stream_store branch March 5, 2018 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants