-question about getChildren and queue recipe
Alexander Shraer 2012-09-04, 01:10
I have 2 questions:
- why was it decided not to guarantee any order on the list returned from
getChildren, given that many use-cases require looking on the child with
the smallest id ?
Why not just keep this list in a sorted form on the server ?
- In the queue recipe (src/recipes/queue), if element() is called twice
we'll always do getChildren twice. Wouldn't
it be better to save the list of children we got from the first element()
call and when going over the list
remove elements from it whenever we see that someone deleted the
corresponding node ?
Flavio Junqueira 2012-09-04, 22:11
Alexander Shraer 2012-09-04, 23:34
Flavio Junqueira 2012-09-05, 11:24
Alexander Shraer 2012-09-05, 15:12
Flavio Junqueira 2012-09-06, 11:18
charles charles 2012-09-05, 00:32
Jordan Zimmerman 2012-09-05, 00:33