[ckan-changes] [okfn/ckan] 1de3d7: Avoid unnecessary commit request
GitHub
noreply at github.com
Wed Aug 15 10:31:10 UTC 2012
Branch: refs/heads/master
Home: https://github.com/okfn/ckan
Commit: 1de3d7c0048d57bc6239e8dc2f895803fc0316ef
https://github.com/okfn/ckan/commit/1de3d7c0048d57bc6239e8dc2f895803fc0316ef
Author: amercader <amercadero at gmail.com>
Date: 2012-08-15 (Wed, 15 Aug 2012)
Changed paths:
M ckan/lib/search/index.py
Log Message:
-----------
Avoid unnecessary commit request
The commit can be sent on the same request with the dict to index
Commit: 302042a46a8a7e0e9d907180b9a9702ef7c68981
https://github.com/okfn/ckan/commit/302042a46a8a7e0e9d907180b9a9702ef7c68981
Author: amercader <amercadero at gmail.com>
Date: 2012-08-15 (Wed, 15 Aug 2012)
Changed paths:
M ckan/lib/cli.py
M ckan/lib/search/__init__.py
M ckan/lib/search/index.py
M ckan/tests/lib/test_cli.py
Log Message:
-----------
Commit only once at the end of a search index rebuild
Commiting changes in the Solr search index is a heavy task that takes
significant time. We are currently commiting changes after each update,
which is probably fine for individual updated (ie users editing or
creating a dataset), but when rebuilding the whole index it is
unnecessary. A single commit at the end of the process is needed, and
that speeds the reindexing about a 85%.
A flag has been added (`-e` or `--commit-each`) to allow the old
behaviour (commiting after each edit).
Commit: 6e43373acc4cdfb98bf12048f6df6f527b3d9847
https://github.com/okfn/ckan/commit/6e43373acc4cdfb98bf12048f6df6f527b3d9847
Author: amercader <amercadero at gmail.com>
Date: 2012-08-15 (Wed, 15 Aug 2012)
Changed paths:
M ckan/logic/action/create.py
M ckan/logic/action/update.py
Log Message:
-----------
Allow not returning the package dict when creating or updating
This avoids calling package_show
Commit: 5ec22a75e63cf416ab6c1124958e632ab531d468
https://github.com/okfn/ckan/commit/5ec22a75e63cf416ab6c1124958e632ab531d468
Author: amercader <amercadero at gmail.com>
Date: 2012-08-15 (Wed, 15 Aug 2012)
Changed paths:
M ckan/logic/action/create.py
M ckan/logic/action/update.py
Log Message:
-----------
Return dataset id if 'return_pacakge_dict' is False
Commit: 8f7baad5636c4352d7626ccbfb90c1d91e25262a
https://github.com/okfn/ckan/commit/8f7baad5636c4352d7626ccbfb90c1d91e25262a
Author: amercader <amercadero at gmail.com>
Date: 2012-08-15 (Wed, 15 Aug 2012)
Changed paths:
M ckan/logic/action/create.py
M ckan/logic/action/update.py
Log Message:
-----------
Use return_id_only instead of return_package_dict
Suggested by @tobes, as it is more backwards compatible
Compare: https://github.com/okfn/ckan/compare/7830d19e4282...8f7baad5636c
More information about the ckan-changes
mailing list