[JAVA-4021] Use Update/Find/Delete/...Options as a context in Find/...Operation class to avoid copying Created: 23/Feb/21  Updated: 27/Oct/23  Resolved: 10/Mar/21

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 4.2.1
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: James Chen Assignee: Jeffrey Yemin
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Motivation

**Take the class of com.mongodb.internal.operation.FindOperation and com.mongodb.internal.client.model.FindOptions as an example,

com.mongodb.internal.operation.Operations#createFindOperation will copy each value of FindOptions into FindOperation, which a terrible for memory and performance

Solution

FindOperation can just accept FindOptions as a context without copying its values.



 Comments   
Comment by Backlog - Core Eng Program Management Team [ 10/Mar/21 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Jeffrey Yemin [ 23/Feb/21 ]

I responded to a similar request in JAVA-4020, so I won't repeat it here.

Generated at Thu Feb 08 09:01:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.