Skip to content

Enable getting properties directly from the server - #903

Draft
bennybp wants to merge 3 commits into
mainfrom
server_getprop
Draft

Enable getting properties directly from the server#903
bennybp wants to merge 3 commits into
mainfrom
server_getprop

Conversation

@bennybp

@bennybp bennybp commented Mar 6, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds the ability for the dataset get_properties_df function to call a new server endpoint instead. This endpoint will be much faster for many datasets by collecting all the information from the database in a single SQL query, rather than fetching and iterating over all records.

As currently implemented, whether to use the server functionality or do it the old way is controlled by the local parameter of get_properties_df, with local = True doing it the old, slower way. The old way is also the only possible way to get properties when using views. I am open to other ideas, though.

Needs to be tested against real-life, large datasets before merging

Status

  • Code base linted
  • Ready to go

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