Closed
Description
Simple DocumentReference
invokes two queries to mongodb.
It doesn't matter if it's lazy or not.
@DocumentReference(lazy = true)
@Field("container_id")
lateinit var container: Container
2021-12-23 12:15:35.123 DEBUG 1 --- [atcher-worker-1] org.mongodb.driver.protocol.command : Sending command '{"find": "container", "filter": {"_id": {"$oid": "61b482c8864a10008a452f83"}}, "limit": 1, "singleBatch": true, "$db": "fs", "lsid": {"id": {"$binary": {"base64": "GGCSBmQUTRK7GCofLZuD/w==", "subType": "04"}}}}' with request id 12 to database fs on connection [connectionId{localValue:3, serverValue:15314}] to server fs-mongodb:27017
2021-12-23 12:15:35.124 DEBUG 1 --- [atcher-worker-1] org.mongodb.driver.protocol.command : Execution of command with request id 12 completed successfully in 1.10 ms on connection [connectionId{localValue:3, serverValue:15314}] to server fs-mongodb:27017
2021-12-23 12:15:35.125 DEBUG 1 --- [atcher-worker-1] org.mongodb.driver.protocol.command : Sending command '{"find": "container", "filter": {"_id": {"$oid": "61b482c8864a10008a452f83"}}, "limit": 1, "singleBatch": true, "$db": "fs", "lsid": {"id": {"$binary": {"base64": "GGCSBmQUTRK7GCofLZuD/w==", "subType": "04"}}}}' with request id 13 to database fs on connection [connectionId{localValue:3, serverValue:15314}] to server fs-mongodb:27017
2021-12-23 12:15:35.126 DEBUG 1 --- [atcher-worker-1] org.mongodb.driver.protocol.command : Execution of command with request id 13 completed successfully in 0.81 ms on connection [connectionId{localValue:3, serverValue:15314}] to server fs-mongodb:27017