couchdbkit

CouchDB - filter latest log per logged instance from a list

有些话、适合烂在心里 提交于 2020-01-13 17:06:15
问题 I could use some help filtering distinct values from a couchdb view. I have a database that stores logs with information about computers. Periodically new logs for a computer are written to the db. A bit simplified i store entries like these: { "name": "NAS", "os": "Linux", "timestamp": "2011-03-03T16:26:39Z", } { "name": "Server1", "os": "Windows", "timestamp": "2011-02-03T19:31:31Z", } { "name": "NAS", "os": "Linux", "timestamp": "2011-02-03T18:21:29Z", } So far i am struggling to filter

CouchDB - filter latest log per logged instance from a list

自古美人都是妖i 提交于 2020-01-13 17:05:05
问题 I could use some help filtering distinct values from a couchdb view. I have a database that stores logs with information about computers. Periodically new logs for a computer are written to the db. A bit simplified i store entries like these: { "name": "NAS", "os": "Linux", "timestamp": "2011-03-03T16:26:39Z", } { "name": "Server1", "os": "Windows", "timestamp": "2011-02-03T19:31:31Z", } { "name": "NAS", "os": "Linux", "timestamp": "2011-02-03T18:21:29Z", } So far i am struggling to filter

CouchDB - filter latest log per logged instance from a list

纵饮孤独 提交于 2019-12-05 18:42:17
I could use some help filtering distinct values from a couchdb view. I have a database that stores logs with information about computers. Periodically new logs for a computer are written to the db. A bit simplified i store entries like these: { "name": "NAS", "os": "Linux", "timestamp": "2011-03-03T16:26:39Z", } { "name": "Server1", "os": "Windows", "timestamp": "2011-02-03T19:31:31Z", } { "name": "NAS", "os": "Linux", "timestamp": "2011-02-03T18:21:29Z", } So far i am struggling to filter this list by distinct entries. What i'd like to receive is the latest logfile for each device. I have a