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

stop creating tables for views and instead create view for them #63

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dethrophes
Copy link

@dethrophes dethrophes commented Dec 31, 2023

I'm neither a python nor SQL person.
Having said that I find it a bit weird that currently the script is creating a real table for all the views and then populating the views with the data.
Which much be exploding the db size, if you use views in sqlite3?

So here I added a hacky approach to instead just create a view for the views.

Not saying this is finished, just providing for feedback.
It seems to work at least for me in my limited testing.

Cheers.

@techouse techouse marked this pull request as draft January 1, 2024 08:24
@techouse techouse added the enhancement New feature or request label Jan 1, 2024
@techouse
Copy link
Owner

techouse commented Jan 1, 2024

The thought of supporting views never crossed my mind. It will sure be good addition.

Please make sure to add unit tests for this.

@techouse
Copy link
Owner

@dethrophes any more progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants