incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marijn Stollenga <m.stolle...@gmail.com>
Subject slow deleting
Date Mon, 05 Oct 2009 13:58:47 GMT
Hello,
I am new to this mailinglist. I am using CouchDB as backend to an  
online game. I notice that deleting documents is really slow (about 4  
deletes per second). Is there any way to improve this speed?
I use several views, do these views prohibit fast deletion? I added a  
view is use in the database.

Thanks in advance,
Marijn

{
    "all": {
        "map": "function(doc) {if (doc.type == 'area'){emit(doc.name,  
doc._id);}}"
    },
    "to_character": {
        "map": "function(doc) {if (doc.type == 'character'){emit 
(doc.location, doc.name);}}"
    },
    "to_paths": {
        "map": "function(doc) {if (doc.type == 'path'){emit(doc.from,  
doc.to);}}"
    },
    "path_to_area": {
        "map": "function(doc) {if (doc.type == 'path'){emit(doc.from + doc.name 
, doc.to);}}"
    }
}
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message