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

catmaid / CATMAID / 5607
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 05 Jan 2019 06:07AM UTC
Jobs 4
Files 97
Run time 10min
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

pending completion
5607

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)

7744 of 17285 relevant lines covered (44.8%)

1.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5607.1 05 Jan 2019 06:08AM UTC 0
44.8
Travis Job 5607.1
2 5607.2 05 Jan 2019 06:07AM UTC 0
44.8
Travis Job 5607.2
3 5607.3 05 Jan 2019 06:07AM UTC 0
44.8
Travis Job 5607.3
4 5607.4 05 Jan 2019 06:17AM UTC 0
43.47
Travis Job 5607.4
Source Files on build 5607
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5607
  • 38415031 on github
  • Prev Build on features/node-query-grid-cache (#5606)
  • Next Build on features/node-query-grid-cache (#5608)
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