sprest icon indicating copy to clipboard operation
sprest copied to clipboard

BSONObjectID vs String ids

Open PovilasID opened this issue 12 years ago • 4 comments

By default Mongo handles ids in ObjectID format which takes less space and is faster to process but in the current sprest id type is string and if in database ids are in ObjectID type sprest returns empty variables.

PovilasID avatar Mar 12 '14 13:03 PovilasID

Yes, good question. I need to store IDs in ObjectID and it seems there is not way to do that now.

mikebevz avatar Mar 21 '14 09:03 mikebevz

It will be very nice if we could have an implicit conversion of BSONObjectID to scala string

binkabir avatar Dec 19 '14 10:12 binkabir

I have submitted the issue 8 months ago. It does not seam that developers are going to implement it yet if that is the case an explanation or at least "wont fix" tag would be nice. I would try and implement it my selfe yet I am using this library so that I would not have to deal with original libraries convertion problems... I will be using this library in short while so I may be forced to deal this the issue again.

On Fri, Dec 19, 2014 at 12:42 PM, binkabir [email protected] wrote:

It will be very nice if we could have an implicit conversion of BSONObjectID to scala string

— Reply to this email directly or view it on GitHub https://github.com/markschaake/sprest/issues/17#issuecomment-67623166.

Pagarbiai, Povilas Sidaravičius

M: +37062356228 | E: [email protected] | Skype: povilasid

PovilasID avatar Dec 19 '14 11:12 PovilasID

I will leave this issue open in case you or someone else wished to issue a pull request to resolve it. I personally do not have time (or a need) to do this.

markschaake avatar Dec 19 '14 15:12 markschaake