Skip to content

get_articles is slow (and fetching inlinks/outlinks seem the ones to blame) #43

@graus

Description

@graus

Retrieving inlinks & outlinks of Wikipedia pages is very slow, for a single query with a couple of hundred ids it can easily exceed 20 seconds (I'm timing everything inside get_articles(self, *pids)).

I don't understand why, everything is in redis, requests seem to be quick from redis-client, and the requests are similar to fetching the ID's labels (and the labels requests go fast, < 0.3 second for the same number of ids). How could this be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions