Skip to content

Update lift-mongodb and lift-mongodb-record for deprecations in the m… - #1977

Closed
eltimn wants to merge 1 commit into
masterfrom
tcn_issue_1830
Closed

Update lift-mongodb and lift-mongodb-record for deprecations in the m…#1977
eltimn wants to merge 1 commit into
masterfrom
tcn_issue_1830

Conversation

@eltimn

@eltimn eltimn commented Oct 18, 2019

Copy link
Copy Markdown
Member

…ongo-java-driver.

Fixes #1830

The mongo-java-driver has deprecated a lot of their classes and are going to remove them in the next release. This is long overdue.

One of the big changes is the use of a codec model for encoding and decoding data to/from the db into a language type. I took advantage of that to change how Records are stored. A RecordCodec is now used, which means data is put directly into a Record instead of first being put into a DBObject (or the newer Document) and then converting from there. I didn't do any benchmarks, but I would think that's a decent performance improvement.

I'm not 100% sure if I'm done with this yet, but I wanted to get this up. I need to set it aside for a couple of weeks while I get back to my job. The main thing I'm still thinking about doing is replacing the BsonParser with a Codec for JValue. I have a lot of it written already, but I'm not sure it's worth the effort to finish it.

@eltimn
eltimn force-pushed the tcn_issue_1830 branch 2 times, most recently from 2af12d5 to eff16b8 Compare October 21, 2019 11:19
@farmdawgnation

Copy link
Copy Markdown
Member

Any word here Tim?

@eltimn

eltimn commented Nov 26, 2019

Copy link
Copy Markdown
Member Author

Got real busy at work. I'm hoping to get back to this in the next couple of weeks.

@farmdawgnation

Copy link
Copy Markdown
Member

No judgement here. Toddler is keeping me plenty busy too. 😂

…ongo-java-driver. Enable Scala 2.13 for lift-mongodb and lift-mongodb-record.
@eltimn

eltimn commented Jul 2, 2020

Copy link
Copy Markdown
Member Author

Superceded by #1984

@eltimn eltimn closed this Jul 2, 2020
@farmdawgnation
farmdawgnation deleted the tcn_issue_1830 branch August 16, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate use of com.mongodb.DBObject

2 participants