Skip to content

Commit

Permalink
Update src/service/filtering/filtering_processing.py
Browse files Browse the repository at this point in the history
Co-authored-by: MrCreosote <[email protected]>
  • Loading branch information
Tianhao-Gu and MrCreosote authored Dec 22, 2023
1 parent 19896c5 commit 33c6ff1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/service/filtering/filtering_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,17 @@ async def get_filters(
keep - A dictionary mapping column names to keep in the returned data set to
allowable column types for the column names.
keep_filter_nulls - Whether or not to keep null values when filtering.
skip - The number of documents to skip.
limit - The maximum number of documents to return.
start_after - The value of the field to start after.
skip - the number of records to skip. Use this parameter wisely, as paging
through records via increasing skip incrementally is an O(n^2) operation.
limit - the maximum number of records to return. 0 indicates no limit, which is usually
a bad idea.
start_after - skip any records prior to and including this value in the `sort_on` field,
which should contain unique values.
It is strongly recommended to set up an index that the query can use to skip to
the correct starting record without a table scan. This parameter allows for
non-O(n^2) paging of data.
start_after is not currently implemented for the case where any filters are appended.
trans_field_func - A function to transform the field name to valid column name in the filter query
"""
appstate = app_state.get_app_state(r)
Expand Down

0 comments on commit 33c6ff1

Please sign in to comment.