Skip to content

Paster Commands

fwoerister edited this page Mar 23, 2019 · 8 revisions

The plugin also comes with two paster commands that can be executed via the CLI. All you need to do is to activate your CKAN's virtual environment.

create_schema

paster --plugin=ckanext-mongodatastore querystore create_schema --config [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 querystore check_integrity --config [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