couchdb Tag

[caption id="" align="alignright" width="240"] Image via CC from Sh4rp_i[/caption] Documents in Apache CouchDB are usually not really deleted but rather marked as such. In use cases with many document insertions and deletions, this considerably affects disc space consumption and performance. This post shows a practical way how to get rid of deleted documents and make your data base fast and efficient again. Deletion is not deletion Usually documents...

Read More

One common task when working with CouchDB is to find out whether a document with a given ID exists. A simple solution is to send an HTTP GET request with the ID to CouchDB and check the response's HTTP status code. A GET request, executed, for example with curl curl https://localhost:5984/mydatabase/mydocumentid will return the document with an HTTP status code 200 if it is successfully found. If the...

Read More

Apache CouchDB offers high availability, excellent throughput and scalability. These goals were achieved using immutable data structures - but they have a price: disk space. CouchDB was designed under the assumption that disk space is cheap. Though it is indeed getting cheaper and cheaper, it is not infinite. Here's a tip to reduce CouchDB database files' disk consumption. When a CouchDB document is updated, the new...

Read More

CouchDB is very powerful, NoSQL database that uses JSON for Document, JS for Map/Reduce queries and HTTP for an API. Since all communication with CouchDB is done via HTTP requests, CouchDB can easily act as a webserver serving data as HTML pages. The CouchDB show function is responsible for taking a document and rendering it in different formats. I've used...

Read More

This is a tale of three images. I found these images while investigating the internals of several different applications. There are some really neat software projects emerging at the moment, and as a developer I always find it interesting to take a look at the implementation details, because there is often a lot to be learned. It's not always something you might need right now,...

Read More