Skip to content

After migrating from patchwork 2.2 to 3.1, search by hash become too slow #579

Closed
@mchehab

Description

@mchehab

This happens via pwclient and using curl:

$ time curl -s 'https://patchwork.linuxtv.org/api/1.3/patches/?per_page=5&hash=b842eaa572bb99d576c4c9a814c0a7956c07c804'
[{"id":98147,"url":"https://patchwork.linuxtv.org/api/1.3/patches/98147/","web_url":"https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/","project":{"id":1,"url":"https://patchwork.linuxtv.org/api/1.3/projects/1/","name":"Linux Media kernel patches","link_name":"linux-media","list_id":"linux-media.vger.kernel.org","list_email":"[email protected]","web_url":"https://linuxtv.org","scm_url":"git://linuxtv.org/media_tree.git","webscm_url":"https://git.linuxtv.org/media_tree.git","list_archive_url":"https://lore.kernel.org/linux-media/","list_archive_url_format":"https://lore.kernel.org/linux-media/{}","commit_url_format":""},"msgid":"<[email protected]>","list_archive_url":"https://lore.kernel.org/linux-media/[email protected]","date":"2023-12-19T00:24:48","name":"[1/3] staging: media: ipu3: Remove some excess struct member documentation","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"b842eaa572bb99d576c4c9a814c0a7956c07c804","submitter":{"id":51,"url":"https://patchwork.linuxtv.org/api/1.3/people/51/","name":"Jonathan Corbet","email":"[email protected]"},"delegate":{"id":4491,"url":"https://patchwork.linuxtv.org/api/1.3/users/4491/","username":"sailus","first_name":"Sakari","last_name":"Ailus","email":"[email protected]"},"mbox":"https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/mbox/","series":[{"id":11920,"url":"https://patchwork.linuxtv.org/api/1.3/series/11920/","web_url":"https://patchwork.linuxtv.org/project/linux-media/list/?series=11920","date":"2023-12-19T00:24:48","name":"[1/3] staging: media: ipu3: Remove some excess struct member documentation","version":1,"mbox":"https://patchwork.linuxtv.org/series/11920/mbox/"}],"comments":"https://patchwork.linuxtv.org/api/patches/98147/comments/","check":"pending","checks":"https://patchwork.linuxtv.org/api/patches/98147/checks/","tags":{},"related":[]}]
real	3m25,298s
user	0m0,045s
sys	0m0,013s

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseIssues with the database or database migrations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions