gbv / k10plus-subjects

Subject analysis of records in K10plus catalogue
0 stars 0 forks source link

Add SQL indexes and adjust sample query #8

Closed stefandesu closed 2 years ago

stefandesu commented 2 years ago

Adding indexes on ppn and notation makes the sample query for co-occurrences a lot faster. The index on voc is optional, but helps with the other query.

I also adjusted the sample query for co-occurrences to something that would actually be used in practice, i.e. order by frequency descending and limit the results.