Skip to content

feat: optimize water level data transfer by implementing chunked deployment prefetching and COPY insert method#574

Merged
jirhiker merged 1 commit into
stagingfrom
BDMS-613-Complete-continuous-water-level-data-transfer-to-staging
Feb 28, 2026
Merged

feat: optimize water level data transfer by implementing chunked deployment prefetching and COPY insert method#574
jirhiker merged 1 commit into
stagingfrom
BDMS-613-Complete-continuous-water-level-data-transfer-to-staging

Conversation

@jirhiker

Copy link
Copy Markdown
Member

Why

This PR addresses the following problem / context:

  • Use bullet points here

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

Copilot AI review requested due to automatic review settings February 28, 2026 21:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes the transducer water-level transfer pipeline by reducing per-PointID deployment lookups and switching observation inserts to a bulk COPY-based approach for faster ingestion.

Changes:

  • Prefetch deployments for all PointIDs in configurable chunks and reuse them during transfer.
  • Add a cursor-based deployment matcher optimized for ascending time-series rows.
  • Replace SQLAlchemy multi-row INSERTs (and Pydantic validation) with a chunked COPY-to-Postgres insert path.

Comment thread transfers/waterlevels_transducer_transfer.py
Comment thread transfers/waterlevels_transducer_transfer.py
Comment thread transfers/waterlevels_transducer_transfer.py
Comment thread transfers/waterlevels_transducer_transfer.py

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 982a63c6b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread transfers/waterlevels_transducer_transfer.py
@jirhiker jirhiker merged commit 040e787 into staging Feb 28, 2026
12 checks passed
@jirhiker jirhiker deleted the BDMS-613-Complete-continuous-water-level-data-transfer-to-staging branch March 12, 2026 21:42
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.

2 participants