This is the fourth part of the series and covers a few performance tweaks to improve data ingestion. Introduction Goals Cheap, Fast, Reliable Eventual Consistency Installation Create VM Installs SSH Security Capture VM Client Code Create Databases Create Benchmark/Testing Code Create Views Start Replication Cron Jobs Performance Tweaks stale=update_after CouchDB local.ini mods Mapping Data Aggregate Heat Map Live Map 4. Performance Tweaks In addition to using cron jobs to maintaining database performance, a few changes […]
In this final post of the series, the design views in CouchDB will be used to populate heat maps and show near real-time device location. The code for the maps is hosted at GitHub (https://github.com/markfennell/couchdb_heatmap). The mapping code uses the following libraries: heatmap.js v2.0.0 by Patrick Wied (http://www.patrick-wied.at/static/heatmapjs/), LeafletJS (http://leafletjs.com/) SimpleHeat (https://github.com/mourner/simpleheat) jQuery This post will not discuss the code used to produce the heat maps but will show how the pages render in the browser. Introduction […]
CouchDB-Lucene is a powerful search engine that can index CouchDB documents and attachments. The example below indexes a database that contains documents from an imaginary items catalog. Each item in the catalog has parts that make up the item. Each part has a part name and part number. Each item document can also have attachments such as MS-Word documents that contain instructions or user manuals or engineering diagrams. For example, an item might be a cell phone which contains […]
As part of a proof-of-concept for a bill-of-materials (BOM) explosion database in CouchDB, I used CouchDB-Lucene. Here are a few quick screenshots of how I got it to work. I will fill in the details in a future post.