Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance optimization: Fetch multiple entities in a single API call #78

Open
simontaurus opened this issue Oct 16, 2024 · 0 comments

Comments

@simontaurus
Copy link
Contributor

WtSite.get_page()

def get_page(self, param: GetPageParam) -> GetPageResult:

should make use of the revisions api, e.g.
https://demo.open-semantic-lab.org/w/api.php?action=query&format=json&prop=revisions&titles=Item:OSWff8ab0e2075040d4939ac9313a997904|Item:OSWec30c26e58034fdaa034d8dfa83c4af2|Item:OSWf3fd09199fd84525b5634269d85c8608&rvprop=ids|timestamp|flags|comment|user|content|sha1|slotsha1&rvslots=jsondata
and construct WtPage objects from the result

@simontaurus simontaurus changed the title Performance optimization Performance optimization: Fetch multiple entities in a single API call Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant