You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/08/08 17:15:19 UTC
[GitHub] [superset] ktmud commented on a diff in pull request #20974: perf: Implement model specific lookups by id to improve performance
ktmud commented on code in PR #20974:
URL: https://github.com/apache/superset/pull/20974#discussion_r940477346
##########
superset/dao/base.py:
##########
@@ -50,14 +50,17 @@ class BaseDAO:
@classmethod
def find_by_id(
- cls, model_id: Union[str, int], session: Session = None
+ cls,
+ model_id: Union[str, int],
+ session: Session = None,
+ no_filter: bool = False,
Review Comment:
nit nit: can we maybe call this `skip_base_filter` to make it even more explicit? I was confused for a while why `get_by_id` would need still need a filter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org