Hello all, I am using a COM object created in VB6 (using an activex exe, for the curious), and a number of methods on my classes return VBA collections. I am accessing the object via DCOM, and am trying to reduce the number of network calls.
let us say that the client performs an operation like:
MyObjA.ObjBCollection("name of a b object".ObjCCollection("name of a c object".MyProperty = "Property value"
where MyObjA.ObjBCollection is a collection of objects of type B, which have yet another collection of objects ObjCCollection of type C.
MyObjA is an object on the server that is being accessed by DCOM.
How many DCOM calls is this?
is it what I imagine to be the worst case:
1 to get ObjBCollection
+1 to get the specified element "name of a b object"
+1 to get the ObjCCollection
+1 to get the specified element "name of a c object"
+1 to set the property?
=5?
or is there some client-side caching/optimization that reduces this that I am not aware of?
Any insight appreciated,
Ken.
let us say that the client performs an operation like:
MyObjA.ObjBCollection("name of a b object".ObjCCollection("name of a c object".MyProperty = "Property value"
where MyObjA.ObjBCollection is a collection of objects of type B, which have yet another collection of objects ObjCCollection of type C.
MyObjA is an object on the server that is being accessed by DCOM.
How many DCOM calls is this?
is it what I imagine to be the worst case:
1 to get ObjBCollection
+1 to get the specified element "name of a b object"
+1 to get the ObjCCollection
+1 to get the specified element "name of a c object"
+1 to set the property?
=5?
or is there some client-side caching/optimization that reduces this that I am not aware of?
Any insight appreciated,
Ken.