Skip to content

Commit

Permalink
[QOLDEV-490] use fast loading for resources that already have a data …
Browse files Browse the repository at this point in the history
…dictionary

- Tabulator is good at type guessing but is slow. Once it has configured the column types, there's no need to use it every time
  • Loading branch information
ThrawnCA committed Aug 1, 2023
1 parent b171d3f commit bef37d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/xloader/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def tabulator_load():
logger.info("'use_type_guessing' mode is: %s",
use_type_guessing)
try:
if use_type_guessing:
if use_type_guessing and not loader.datastore_resource_exists(resource['id']):
tabulator_load()
else:
try:
Expand Down

0 comments on commit bef37d2

Please sign in to comment.