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

Implement SQLite/T-SQL compatible syntax for get_SDA_*() methods #250

Open
1 of 4 tasks
brownag opened this issue May 13, 2022 · 1 comment
Open
1 of 4 tasks

Implement SQLite/T-SQL compatible syntax for get_SDA_*() methods #250

brownag opened this issue May 13, 2022 · 1 comment
Assignees

Comments

@brownag
Copy link
Member

brownag commented May 13, 2022

  • 1. Why is SQLite GROUP_CONCAT() so slow when run locally?
    • resolved by adding indices to e.g. createSSURGO()
  1. Generalize temporary table conversion
  • get_SDA_property(): dominant component (numeric), weighted average, min/max aggregation
  • get_SDA_interpretation(): dominant component (numeric) and weighted average, min/max aggregation
  • get_component_from_SDA()

Further development following #246; I think I have figured out an approach to handle TODO item 2, that with indexing of the temp tables may resolve item 1.

EDIT: indexing of the tables alone resolves item 1, temporary tables are a much more involved fix for many different queries

@brownag brownag self-assigned this May 13, 2022
@brownag brownag changed the title Implements dsn and SQLite<->T-SQL compatible syntax for get_SDA_*() methods Implement SQLite/T-SQL compatible syntax for get_SDA_*() methods May 13, 2022
@brownag
Copy link
Member Author

brownag commented Mar 10, 2025

At long last, in #381, I've developed a scheme for dealing with item 2 (part 1) using CTEs.

This applies to certain aggregation methods in get_SDA_property(), get_SDA_interpretation() as well as get_component_from_SDA().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant