Skip to content

Paster Commands

fwoerister edited this page Mar 23, 2019 · 8 revisions

The plugin also comes with two paster commands the can be executed via the CLI.

create_schema

paster --plugin=ckanext-mongodatastore create_schema -c [PATH TO YOUR CONFIG]

This command generates the table, that is used for storing query metadata (timestamp, query hash, result hash, etc.)

check_integrity

paster --plugin=ckanext-mongodatastore check_integrity -c [PATH TO YOUR CONFIG]

This command reexecutes every query, that is stored in the querystore and checks if the stored hash values still match the retrieved results from the MongoDB

!!Pleas be aware, that this command can take some time, depending on the number of queries, that are already stored in the querystore!!

Clone this wiki locally