-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typos corrected and added some explanations #8
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ Sinker is built by [Paradigm](https://www.paradigm.xyz/), and is licensed under | |
|
||
In Postgres, you might have a normalized schema like this: | ||
|
||
- A Student and a Teacher refer to a Person | ||
- A Student and a Teacher refers to a Person | ||
- A Course is taught by a Teacher | ||
- Students have and belong to many Courses through the Enrollment join table | ||
- Students have taken and belong to many Courses through the Enrollment join table | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to keep this language as HABTM is a standard way to indicate a many-to-many relationship. |
||
|
||
![schema](sinker_schema.png) | ||
|
||
|
@@ -78,7 +78,7 @@ Sinker creates triggers on the Postgres tables that you want to synchronize (e.g | |
above). When a row is inserted, updated, or deleted in any of these tables, the trigger schedules the materialized view | ||
to be refreshed at the next interval. | ||
|
||
The changes to the materialized view are sent to a logical replication slot. Sinker reads from this slot and indexes the | ||
The changes into the materialized view are sent to a logical replication slot. Sinker reads from this slot and indexes the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think "changes to" is correct as is. |
||
documents in Elasticsearch. | ||
|
||
You define the query behind the materialized view, so you can denormalize the data however you want, filter out unwanted | ||
|
@@ -331,7 +331,7 @@ Spin up Postgres and Elasticsearch: | |
docker-compose --env-file=.env.test up -d | ||
``` | ||
|
||
Run tests: | ||
Run tests (with -s option to allow more verbose output): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
```shell | ||
poetry run pytest -s | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is correct as is