• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

catmaid / CATMAID / 5606 / 4
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 05 Jan 2019 05:22AM UTC
Files 97
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jan 2019 04:56AM UTC coverage: 43.474%. First build
5606.4

push

travis-ci

tomka
Add grid based cache option for spatial queries

Similar to the simple node_query_cache table and node providers, there
is now also a node_grid_query_cache table and node provider. Together
with the node_grid_query_cache_cell table, a cache for spatial data in
individual AABB bounding boxes in a uniform grid can be be stored and
queried with this. The management command "catmaid_update_cache" has
been updated sp that it can work with grid caches, too. A typical call
to create new grid cache cells could look like this:

  ./manage.py catmaid_update_cache_tables --project=1 --cache grid \
      --type msgpack --cell-width 50000 --cell-height 50000 --cell-depth 40

This will create a uniform grid with cells of size 50000x50000x40 nm.
Other parameters like --min-z/--max-z or --orientation can be used as
well.

The optional settings parameter DEFAULT_CACHE_GRID_CELL_WIDTH,
DEFAULT_CACHE_GRID_CELL_HEIGHT and DEFAULT_CACHE_GRID_CELL_DEPTH allow
to define defaults for the above management command.

Functionality to update cells automatically will be provided separately.
To enable this, the treenode/connector insert/update/delete triggers now
also trigger async Postgres events using pg_notify. This doesn't seem to
have any significant overhead.

When treenodes are created, moved or deleted the database emits now the
event "catmaid.spatial-update" along with the start and end node
coordinates. The same happens with changed connectors and connector
links. Other processes can use this to asynchronously react to
those events without writing to another table or blocking trigger
processing in other ways. This will be used to to rebuild caches.

The front-end allows to set a "Level of detail" (LOD) value in the
tracing layer settings. By default, this is set to "max", which causes
all LOD levels to be included. Setting this to 1, will include only the
first level.

To use levels of detail, the command line options are available:

--lod-levels to configures over how m... (continued)

7515 of 17286 relevant lines covered (43.47%)

0.43 hits per line

Source Files on job 5606.4
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5112
  • Travis Job 5606.4
  • e12c8c6d on github
  • Next Job for on features/node-query-grid-cache (#5607.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc