« first day (2371 days earlier)      last day (393 days later) » 

07:11
@superhero bro i need an idea like i have created a chat module into a clients website now he wants to see the response time of his agent's reply to the clients based on every msgs . i have 2 collections 1.conversation / 2.msgs --- conversation is like what we see when we open watsapp and msgs store the chat thread into a conversation
 
1 hour later…
08:17
@NilasisSen gm o/
where are the messages persisted?
...and how :)
08:41
Checkout my writings about javascript codepen.io/grumpy/post/undefined-scope-in-javascript
08:57
@superhero morning
check this json
i have 1 conversation collection and another one is message collection its like 1 to many relation
room = conversation in here
1 room can have multiple msgs
like any basic chat rooms .. so my client wants to check response time of the agent in each rooms
09:10
ok, can you query the db grouped by room, grouped by author, ordered by create date?
also, wtf?

> JSON.parse('{"2":"bar", "1":"foo"}')
< Object {1: "foo", 2: "bar"}
09:56
Hey, stackoverflow.com/questions/46284270/… No one answered, as if someone could see and help me I would be grateful
10:40
@superhero haha yaa tried to avoid it but some problem was thr so did that
yes i can do that query
JSON.parse('{"2":"bar", "1":"foo"}') will do some delay but that array will have max 2,3 elements so skipped it :P
 
3 hours later…
13:23
the json part was something OT, I was just struggling at using an ordered json entity, but chrome parsed into ordered by key...

anyway, if you can query that, then you should be able to calculate the difference between A and B in the same query, idk what db you using, but I guess there will be support for that as well if you can group :) else do it in code after that query :)
mongo
yes i can do it in code but i was trying to avoid it i was thinking if i can do something on db
13:54
I'm not to familiar with mongo as you know :( but I'm sure it will be possible there as well.
14:45
stackoverflow.com/questions/46301288 hey can someone help me here?

« first day (2371 days earlier)      last day (393 days later) »