Udi Mosayev

Israel

udiudi.com

Age: 26

Developer

Feb
19
awarded Commentator
Feb
19
comment Different results between raw MongoDB and Mongoid
@muistooshort It didn't change the results I'm getting when querying through Mongoid. @end_time.zone returns UTC now.
Feb
18
comment Different results between raw MongoDB and Mongoid
The zone for @start_time is +00:00, and for @end_time its IST
Feb
18
comment Different results between raw MongoDB and Mongoid
you are right, I copied the wrong query. The results are still different (the query wasn't the problem). @start_time: @start_time = DateTime.strptime('2011-01-01', '%Y-%m-%d') @end_time: @end_time = Time.now
Feb
18
revised Different results between raw MongoDB and Mongoid
added 63 characters in body
Feb
18
asked Different results between raw MongoDB and Mongoid
Feb
17
comment MongoDB group and distinct
Doesn't feel like the right answer though, I'm sure there's a better way to solve this.
Feb
17
answered MongoDB group and distinct
Feb
17
revised MongoDB group and distinct
deleted 599 characters in body
Feb
17
revised MongoDB group and distinct
deleted 48 characters in body
Feb
17
revised MongoDB group and distinct
The title is clearer
Feb
17
revised MongoDB group and distinct
added 659 characters in body
Feb
17
revised MongoDB group and distinct
added 147 characters in body
Feb
17
revised MongoDB group and distinct
deleted 102 characters in body
Feb
17
asked MongoDB group and distinct
Feb
16
comment Mongoid Grouping by date
Thanks. So no neat way to do this in v2.6? there isn't dateToString replacement?
Feb
16
comment Mongoid Grouping by date
Any idea how I can run this raw query through Mongoid? or write it with Mongoid?
Feb
16
comment Mongoid Grouping by date
thanks. I use v2.6 so I'll try to find a way to do something similar with the current release, and see if it works for me. Could you explain what you did to make it work? I see you have multiple $group and $project it the query, why is that?
Feb
16
comment Mongoid Grouping by date
created_at is ISO date
Feb
16
asked Mongoid Grouping by date
1 2 3