# Use of object store memory

**URL:** https://discuss.ray.io/t/use-of-object-store-memory/12334
**Category:** Ray Workflows
**Created:** [October 5, 2023, 9:06am UTC](https://discuss.ray.io/t/use-of-object-store-memory/12334 "2023-10-05T09:06:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shyampatel](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shyampatel](https://discuss.ray.io/u/shyampatel)
#### Post date: [October 5, 2023, 9:06am UTC](https://discuss.ray.io/t/use-of-object-store-memory/12334/1 "2023-10-05T09:06:52Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.

I have three modules in my ray pipeline: `camera`, `detection` and `tracker`. There is `frame_queue` (ray queue) to share frames from camera module to detection module and `det_queue` (ray queue) to share detections from detection module to tracker module. Now, in camera module, I am reading rtsp streaming using cv2, creating a **`instance of Frame class`** ( mentioned below) with only frame, and pushing it to `frame_queue`. In detection module, I am poping instance, getting detection for frame, updating the same instances with `dets` and pushing same instance in `det_queue`.

In this flow, in camera module when we are passing a instance in frame\_queue, it will upload it to object store memory and share reference of it into queue and in detection module it will read instance from object store memory again. But now, when we update the instance, **`will it upload the complete instance into object store memory or update the already existed instance?`**

Please let me know, if I am missing anything.

```auto
class Frame:
    def __init__ (self, frame, dets=None):
        self.frame = frame
        self.dets = dets

```

---

<div class="post-metadata">

### Author: ![Chen\_Shen](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/chen_shen/32/1486_2.png) [@Chen\_Shen](https://discuss.ray.io/u/Chen_Shen)
#### Post date: [October 23, 2023, 12:22am UTC](https://discuss.ray.io/t/use-of-object-store-memory/12334/2 "2023-10-23T00:22:46Z")

</div>

hi @shyampatel  
can you show a bit more code on how you use ray queue to update the frames?
