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

Move to storing state_groups_state as deltas #1065

Merged
merged 13 commits into from Sep 7, 2016
Merged

Conversation

erikjohnston
Copy link
Member

No description provided.

@erikjohnston erikjohnston force-pushed the erikj/state_storage branch 2 times, most recently from 5b5fb8b to 1d1a984 Compare September 5, 2016 08:44
# txn.executemany(
# "DELETE FROM state_groups WHERE id = ?",
# state_rows
# )
Copy link
Contributor

Choose a reason for hiding this comment

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

While I do usually approve of comments, I'm not so sure about these ones.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe replace this with some kind of TODO:...

@NegativeMjark
Copy link
Contributor

LGTM appart from the commented out code

@NegativeMjark
Copy link
Contributor

Maybe explain why we can use WITH Recursive on postgres but not on sqlite?

prev_state = self._get_state_groups_from_groups_txn(
txn, [prev_group], types=None
)
prev_state = prev_state.values()[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not prev_state[prev_group]?

@NegativeMjark
Copy link
Contributor

LGTM

@erikjohnston erikjohnston merged commit 94a83b5 into develop Sep 7, 2016
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.

None yet

2 participants