Closed nichtich closed 4 years ago
I would prefer to add count to importers in general
Ok, so there is no need to extend anything in Catmandu-SRU as the Importer already has method count
. It only needs to be made available via the Catmandu CLI.
yes i'll look into it
Turns out this was already posssible with catmandu convert SRU ... to Count
. Problem was that it iterated over the results to count. The just released Catmandu 1.2013 uses the count method when available.
I tried to count the number of records in a result set without actually downloading all of them:
This does not work because the
count
command is only available for Stores, not for Importers. Shall we impement Catmandu::Store::SRU or is there another way? Catmandu::Store::SRU might also provide SRU Update protocol but I doubt that anyone actually needs this. I only want to count.