Skip to content

Set multiple unique features in one SQL query for feature extractors#39

Open
chrjabs wants to merge 2 commits into
Udopia:mainfrom
chrjabs:mse-26
Open

Set multiple unique features in one SQL query for feature extractors#39
chrjabs wants to merge 2 commits into
Udopia:mainfrom
chrjabs:mse-26

Conversation

@chrjabs
Copy link
Copy Markdown
Contributor

@chrjabs chrjabs commented May 11, 2026

I noticed that running the wcnfbase feature extractor took a long time even after the features had already been extracted for all instances. Turns out writing the features one by one into the database is really inefficient.
With this PR the set_values methods of Database and Schema now take dicts of multiple values and write as much as possible in one SQL query. I'm not sure I fully understand the schema for non-unique features, so I tried to not modify the logic there.

This made a wcnfbase feature extraction run for me go from ~20 minutes to 40 seconds.

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.

1 participant