Skip to content
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

149 push ref dependencies #415

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

adp-atea
Copy link
Contributor

No description provided.

sirex and others added 3 commits April 28, 2022 09:45
Current push implementetion can't resolve circular dependencies. Also,
current implementation reads all rows from source table, which can lock
table.

New implementation:

- will read rows one by one using threads;
- each read can be postponed if dependencies are not yet pushed;
- source tables will be read in small chunks;
- there will be no need to set_matadata scope since _id's will be taken
  from target data store.

Fixes:

- #149
…149-push-ref-dependencies

# Conflicts:
#	tests/test_push.py
@adp-atea adp-atea linked an issue Mar 30, 2023 that may be closed by this pull request
data_with_self_reference[payload.get("_id")] = {
"data": data,
"self_reference": filtered_properties
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunately this won't work with large datasets, because as I understand, here all table data is loaded into memory and then sorted?

But of course this would be a good solution if all datasets would fit into memory.

If data would be sorted using SQL query this would work. But in order to sort data using SQL we need a recursive CTE, see https://stackoverflow.com/questions/59137122/sql-query-for-topological-sort

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.

Push ref dependencies
2 participants