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

Explore uses of DuckDB to create a single column to iterate #716

Open
datejada opened this issue Jul 31, 2024 · 0 comments
Open

Explore uses of DuckDB to create a single column to iterate #716

datejada opened this issue Jul 31, 2024 · 0 comments
Labels
Type: improvement Better way of doing something Zone: data & import Interfacing between database and Julia

Comments

@datejada
Copy link
Member

What and Why

What is better, to iterate over the :raw DB table and get the row.column or to use SELECT to get a single column as result, but then pipe to DataFrame. This might improve this part of the code.

    name_to_id = Dict(
        row.name => i for
        (i, row) in enumerate(TulipaIO.get_table(Val(:raw), connection, "assets_data"))
    )

Possible Drawbacks

No response

Related Issues

No response

@datejada datejada added Type: improvement Better way of doing something Zone: data & import Interfacing between database and Julia labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: improvement Better way of doing something Zone: data & import Interfacing between database and Julia
Projects
None yet
Development

No branches or pull requests

1 participant