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

OCPP 2.0.1 - Use database for storage of ChargingProfiles #713

Open
couryrr-afs opened this issue Jul 24, 2024 · 0 comments · May be fixed by #790
Open

OCPP 2.0.1 - Use database for storage of ChargingProfiles #713

couryrr-afs opened this issue Jul 24, 2024 · 0 comments · May be fixed by #790

Comments

@couryrr-afs
Copy link
Contributor

OCPP Version

OCPP2.0.1

Describe the problem

During the development of v2.0.1 - K01 SmartCharging we followed the pattern established in v1.6 where valid profiles were stored in both an in-memory data structure and a sqlite database. After this the database is only used when the system power cycles to read the profile from the database back into memory. This was useful during the early stages of development. Looking at this now it seems to add complexity to the code to keep the two storage mechanisms in sync and duplicates data amongst memory and hdd space.

Describe your solution

Remove the in-memory data structure and read and write to the database for all operations.

Additional context

No response

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 a pull request may close this issue.

1 participant