]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Resolve performance issues with '/events' web view
authorStephen Finucane <stephen@that.guru>
Thu, 10 May 2018 14:45:05 +0000 (15:45 +0100)
committerDaniel Axtens <dja@axtens.net>
Fri, 11 May 2018 16:45:25 +0000 (02:45 +1000)
commit841228eb95360a251b37e76e0387f106b1017454
tree1b2b54f84c0c1edcb8314b283ad723af65153c94
parent7397142e9838c1b4bcfe6f5c42c3aa4864147067
REST: Resolve performance issues with '/events' web view

The dropdown select-based filters in the web view of the REST API have
stung us a few times. In this case, populating these filters for the
'/events' endpoint results in a huge query that hammers the database and
results in seriously laggy responses.

The root cause of this performance issues was erroneously identified as
an issue with the JSON renderer so that particular patch can now be
reverted. This will be done separately.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Cc: Daniel Axtens <dja@axtens.net>
Tested-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/api/filters.py