shimaore / ccnq3

ISP VoIP (SIP) softswitch platform
https://shimaore.github.io/ccnq4/
GNU General Public License v3.0
13 stars 8 forks source link

Compaction not sufficient for local CDR databases #48

Closed shimaore closed 6 years ago

shimaore commented 11 years ago

The comments in http://wiki.apache.org/couchdb/Purge_Documents seem to indicate that rotating the databases is probably a better option. The DB name is static in json_cdr, but there can be many of them (not sure how that gets done in XML, can we repeat the same param multiple times?).

Order of operations with two databases would look like this:

Another option would be to use a Node.js proxy (which would also allow to replace the _id with some unique value based on timestamp, calling/called number, microsecond duration), but that doesn't necessarily make it more robust. (?)