Skip to content

Use Postgres Views for getting child records and database records#932

Merged
bennybp merged 3 commits into
mainfrom
db_views
Apr 17, 2025
Merged

Use Postgres Views for getting child records and database records#932
bennybp merged 3 commits into
mainfrom
db_views

Conversation

@bennybp

@bennybp bennybp commented Apr 16, 2025

Copy link
Copy Markdown
Contributor

Description

This migrates to using recursive postgres views in two areas:

  1. Finding all direct children of a record, as well as recursively finding all child records of a given record
  2. Finding all records for a dataset (both direct and recursively)

This will be faster than what was previously done (although this hasn't been benchmarked). This will also make some planned future queries much easier.

No user-facing API is changed.

Status

  • Code base linted
  • Ready to go

@bennybp bennybp merged commit 6895071 into main Apr 17, 2025
@bennybp bennybp deleted the db_views branch April 17, 2025 13:22
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.

1 participant