@tgreenstein I was wrong…
When I put [‘parent’] for both startKey and endKey, I get nothing.
When I put [‘parent’] only for the startKey, then I get the same result with [‘parent0000’] as well.
This is the actual data
{"total_rows":16,"rows":[
{"id":"entry.comment.fae7d036-e946-11e4-951e-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-22 23:26:19"],"value":"entry.comment.fae7d036-e946-11e4-951e-080027dcfac6.default"},
{"id":"entry.comment.0e258566-e948-11e4-9236-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-22 23:34:01"],"value":"entry.comment.0e258566-e948-11e4-9236-080027dcfac6.default"},
{"id":"entry.comment.68f83ae2-e948-11e4-b8c4-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-22 23:36:33"],"value":"entry.comment.68f83ae2-e948-11e4-b8c4-080027dcfac6.default"},
{"id":"entry.comment.a248039a-e94d-11e4-9f20-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 00:13:57"],"value":"entry.comment.a248039a-e94d-11e4-9f20-080027dcfac6.default"},
{"id":"entry.comment.fa6ba98a-e94f-11e4-9ee6-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 00:30:44"],"value":"entry.comment.fa6ba98a-e94f-11e4-9ee6-080027dcfac6.default"},
{"id":"entry.comment.bb7df6c6-e952-11e4-beed-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 00:50:27"],"value":"entry.comment.bb7df6c6-e952-11e4-beed-080027dcfac6.default"},
{"id":"entry.comment.f940ff58-ea01-11e4-9d63-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 21:44:52"],"value":"entry.comment.f940ff58-ea01-11e4-9d63-080027dcfac6.default"},
{"id":"entry.comment.fcd16d24-ea01-11e4-abca-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 21:44:58"],"value":"entry.comment.fcd16d24-ea01-11e4-abca-080027dcfac6.default"},
{"id":"entry.comment.22c065e4-ea02-11e4-a636-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 21:46:02"],"value":"entry.comment.22c065e4-ea02-11e4-a636-080027dcfac6.default"},
{"id":"entry.comment.c39b9fa6-ea02-11e4-9315-080027dcfac6.default","key":["entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default","2015-04-23 21:50:32"],"value":"entry.comment.c39b9fa6-ea02-11e4-9315-080027dcfac6.default"}
]
}
My query
startKey: [“entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default”]
endKey: [“entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default”]
Result: Nothing
My query 2
startKey: [“entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default”, “0”]
endkey: [“entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default”, “99999”]
Result: gets everything, but
startKey [“entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.defaultasdlkfjaksldf”] also works (it should not)
Basically, I want to convert the following sql
select * from aTable where key="entry.creative.be2f23b4-e933-11e4-922b-080027dcfac6.default" order by "the date in the compound key"