Event Timeline
Comment Actions
Not perfect for gitlab statements, see 2nd tryout to specify the type which is better:
softwareheritage-scheduler=> explain update task set arguments='{"args": [], "kwargs": {"instance": "inria", "url": "https://gitlab.inria.fr/api/v4"}}' where arguments#>>'{kwargs,instance}' = 'inria'; QUERY PLAN ------------------------------------------------------------------------------- Update on task (cost=0.00..10290411.16 rows=894495 width=105) -> Seq Scan on task (cost=0.00..10290411.16 rows=894495 width=105) Filter: ((arguments #>> '{kwargs,instance}'::text[]) = 'inria'::text) (3 rows) softwareheritage-scheduler=> explain update task set arguments='{"args": [], "kwargs": {"instance": "inria", "url": "https://gitlab.inria.fr/api/v4"}}' where arguments#>>'{kwargs,instance}' = 'inria' and type in ('list-gitlab-full', 'list- gitlab-incremental'); QUERY PLAN ----------------------------------------------------------------------------------------- Update on task (cost=0.57..8.79 rows=1 width=105) -> Index Scan using temporary_task_types on task (cost=0.57..8.79 rows=1 width=105) Index Cond: (type = ANY ('{list-gitlab-full,list-gitlab-incremental}'::text[])) Filter: ((arguments #>> '{kwargs,instance}'::text[]) = 'inria'::text) (4 rows)
Comment Actions
Also, current data is:
type | arguments ----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------- list-gitlab-full | {"args": [], "kwargs": {"instance": "inria", "api_baseurl": "https://gitlab.inria.fr/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "framagit", "api_baseurl": "https://framagit.org/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "riseup", "api_baseurl": "https://0xacab.org/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "gitlab", "api_baseurl": "https://gitlab.com/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "freedesktop", "api_baseurl": "https://gitlab.freedesktop.org/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "ow2", "api_baseurl": "https://gitlab.ow2.org/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "debian", "api_baseurl": "https://salsa.debian.org/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "gite.lirmm", "api_baseurl": "https://gite.lirmm.fr/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "common-lisp", "api_baseurl": "https://gitlab.common-lisp.net/api/v4"}} list-gitlab-full | {"args": [], "kwargs": {"instance": "gnome", "api_baseurl": "https://gitlab.gnome.org/api/v4"}} list-gitlab-incremental | {"args": [], "kwargs": {"instance": "inria", "api_baseurl": "https://gitlab.inria.fr/api/v4"}} list-gitlab-incremental | {"args": [], "kwargs": {"instance": "framagit", "api_baseurl": "https://framagit.org/api/v4"}} list-gitlab-incremental | {"args": [], "kwargs": {"instance": "riseup", "api_baseurl": "https://0xacab.org/api/v4"}} list-gitlab-incremental | {"args": [], "kwargs": {"instance": "gitlab", "api_baseurl": "https://gitlab.com/api/v4"}} list-phabricator-full | {"args": [], "kwargs": {"instance": "llvm", "forge_url": "https://reviews.llvm.org"}} list-phabricator-full | {"args": [], "kwargs": {"instance": "wikimedia", "forge_url": "https://phabricator.wikimedia.org"}} list-phabricator-full | {"args": [], "kwargs": {"instance": "blender", "forge_url": "https://developer.blender.org"}} list-phabricator-full | {"args": [], "kwargs": {"instance": "kde", "forge_url": "https://phabricator.kde.org"}} list-phabricator-full | {"args": [], "kwargs": {"instance": "swh", "forge_url": "https://forge.softwareheritage.org"}} list-cgit | {"args": [], "kwargs": {"url": "https://fedorapeople.org/cgit/", "instance": "fedora"}} list-cgit | {"args": [], "kwargs": {"url": "http://git.gnu.org.ua/cgit/", "instance": "git.gnu.org.ua", "url_prefix": "http://git.gnu.org.ua/repo/"}} list-cgit | {"args": [], "kwargs": {"url": "http://git.yoctoproject.org/clean/cgit.cgi/", "instance": "yoctoproject", "url_prefix": "https://git.yoctoproject.org/git/"}} list-cgit | {"args": [], "kwargs": {"url": "https://cgit.kde.org/", "instance": "kde", "url_prefix": "https://anongit.kde.org/"}} list-cgit | {"args": [], "kwargs": {"url": "http://hdiff.luite.com/cgit/", "instance": "hdiff.luite"}} list-cgit | {"args": [], "kwargs": {"url": "https://gitweb.torproject.org/", "instance": "tor", "url_prefix": "https://git.torproject.org/"}} list-cgit | {"args": [], "kwargs": {"url": "https://git.alpinelinux.org/", "instance": "alpinelinux"}} list-cgit | {"args": [], "kwargs": {"url": "https://code.qt.io/cgit/", "instance": "qt.io", "url_prefix": "http://code.qt.io/"}} list-cgit | {"args": [], "kwargs": {"url": "https://git.baserock.org/cgit/", "instance": "baserock", "url_prefix": "https://git.baserock.org/git/"}} list-cgit | {"args": [], "kwargs": {"url": "https://www.happyassassin.net/cgit/", "instance": "happyassassin"}} list-cgit | {"args": [], "kwargs": {"url": "https://git.kernel.org/", "instance": "git-kernel"}} list-cgit | {"args": [], "kwargs": {"url": "https://git.openembedded.org/", "instance": "openembedded"}} list-cgit | {"args": [], "kwargs": {"url": "https://git.zx2c4.com/", "instance": "zx2c4"}} list-cgit | {"args": [], "kwargs": {"url": "https://git.savannah.gnu.org/cgit/", "instance": "gnu-savannah", "url_prefix": "http://git.savannah.gnu.org/git/"}} -- list-debian-distribution | {"args": ["Debian-Security"], "kwargs": {}} list-debian-distribution | {"args": ["Debian"], "kwargs": {}} list-github-full | {"args": [], "kwargs": {}} list-pypi | {"args": [], "kwargs": {}} list-github-incremental | {"args": [], "kwargs": {}} list-npm-full | {"args": [], "kwargs": {}} list-bitbucket-incremental | {"args": [], "kwargs": {}} list-gnu-full | {"args": [], "kwargs": {}} (41 rows)