openclimatefix / openclimatefix/data-platform

N location updates causes connection issues

Open
#199 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3
Forks
1
Avg merge
44m
Merged PRs (30d)
2

Description

make doctor output
n/a
Verification
  • I have searched the existing issues to ensure this bug has not already been reported.
  • I have run make init locally.
  • I have been able to reproduce this bug locally.
What were you trying to do (and why)?

When we run multiple update locations int he data-platform we sometimes see some connection issues.

This seems to happen at midnight every day with the pvlive consumer

I think this is due to each location update doing a new materalized view

What happened (including relevant commands, logs etc)?

see above

What did you expect to happen?

that we can update 1000 locations, without there bering a problem

Could a bulk update for locations be possible?

Step-by-step reproduction instructions (optional).

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pvlive consumer and the location-update path, then inspect how each update triggers a materialized view and opens database connections. Reproduce the midnight or high-volume case if possible; done means updating 1000 locations without connection issues.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.