Skip to content

Optimize tidyCovariates() for new Andromeda when data are large (Issue308) - #309

Merged
anthonysena merged 2 commits into
developfrom
issue308
Jun 16, 2025
Merged

Optimize tidyCovariates() for new Andromeda when data are large (Issue308)#309
anthonysena merged 2 commits into
developfrom
issue308

Conversation

@schuemie

Copy link
Copy Markdown
Member

As mentioned in #308, I found tidyCovariates() to be extremely slow when data are very large (>= 8GB uncompressed). The simple adjustment in this PR leads to a >100 fold increase in speed in my example case. In general the change seems like a good idea.

@ginberg

ginberg commented Jun 16, 2025

Copy link
Copy Markdown
Collaborator

@schuemie that is a nice performance gain, thanks. @anthonysena I don't see a problem with this PR, what do you think?

@anthonysena

Copy link
Copy Markdown
Collaborator

Looks great thanks @schuemie for identifying and fixing this issue!

@anthonysena
anthonysena merged commit 6f6dbd6 into develop Jun 16, 2025
8 checks passed
@anthonysena
anthonysena deleted the issue308 branch June 16, 2025 16:44
ginberg added a commit that referenced this pull request Sep 2, 2025
* fix setting of continous covariates in case of multiple settings and add a test

* update test

* Optimizing tidyCovariates for large data. Fixes #308 (#309)

Co-authored-by: ginberg <ginberg@gmail.com>
Co-authored-by: Admin_mschuemi <Admin_mschuemi@its.jnj.com>

* cran submission file

* add params to getDBCovariateData (#312)

* #292 add function to replace cohort schema and table

* #292 add params

* add test

* doc

* v3.11.0

* update news

---------

Co-authored-by: Martijn Schuemie <schuemie@ohdsi.org>
Co-authored-by: Admin_mschuemi <Admin_mschuemi@its.jnj.com>
ginberg added a commit that referenced this pull request Oct 28, 2025
* fix setting of continous covariates in case of multiple settings and add a test

* update test

* Optimizing tidyCovariates for large data. Fixes #308 (#309)

Co-authored-by: ginberg <ginberg@gmail.com>
Co-authored-by: Admin_mschuemi <Admin_mschuemi@its.jnj.com>

* cran submission file

* add params to getDBCovariateData (#312)

* #292 add function to replace cohort schema and table

* #292 add params

* add test

* doc

* v3.11.0

* update news

* Making removal of redundant covariates reproducible (with unit test). Fixes #315 (#316)

Co-authored-by: Admin_mschuemi <Admin_mschuemi@its.jnj.com>

* version update

* prepare release

* CRAN file

---------

Co-authored-by: Martijn Schuemie <schuemie@ohdsi.org>
Co-authored-by: Admin_mschuemi <Admin_mschuemi@its.jnj.com>
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.

tidyCovariates is extremely slow and resource intensive for large data when using Andromeda >= 1.0.0

3 participants