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

Speed up of superset #39

Open
oktaal opened this issue Nov 2, 2022 · 2 comments
Open

Speed up of superset #39

oktaal opened this issue Nov 2, 2022 · 2 comments

Comments

@oktaal
Copy link
Member

oktaal commented Nov 2, 2022

For example by indexing lemma for superset query. Ideally "instantaneously"

@bbonf
Copy link

bbonf commented Nov 2, 2022

I'm experimenting with BaseX locally, and it seems like
/alpino_ds/node[..//node[@lemma="staan" and @pt="ww"]] uses no index while
//node[@lemma="staan" and @pt="ww"]/ancestor::alpino_ds does use the attribute index

@bbonf
Copy link

bbonf commented Nov 3, 2022

I'm seeing x10 improvement (locally) on the entire Europarl:

Running query: /treebank/alpino_ds/node[..//node[@lemma="wet"] and ..//node[@lemma="staan"]]
results: 1195
time:  17.174638271331787 seconds
Running query: //node[@lemma="wet"]/ancestor::alpino_ds/node[..//node[@lemma="staan"]]
results: 1195
time:  1.6503210067749023 seconds

@tijmenbaarda I was thinking another thing that could have gone wrong here is that by default we save the cached results inside the django source folder, which iirc is NFS mounted and probably isn't meant for fast read/write...

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

2 participants