CouchDB Statistics

Categories

Component ID

2537252

Component name

CouchDB Statistics

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

422

Component created

Component changed

Component body

This is a CouchDB backend for the core Statistics module

Latest release: 8.x-1.x-dev

- Requires patch from #1446932: Improve statistics performance by adding a swappable backend
- Only implements recordHit and fetchViews method
- Day count doesn't reset
- "Popular content" block won't work

Install

  1. Install via composer or use Composer Manager
  2. Update services.yml. Add:
      services:
        statistics.statistics_storage:
          alias: couchdb.statistics_storage
      
  3. Update settings.php. Example:
      $settings['couchdb'] = array(
        'dbname' => 'couchdb',
        'type' => 'socket',
        'host' => 'localhost',
        'port' => 5984,
        'user' => null,
        'password' => null,
        'ip' => null,
        'logging' => 'false',
      );
    

It works!

Testing

You can get a free hosted CouchDB database from Iris Couch for testing.