Bulk fetching of Record release states?

noahMDMi
noahMDMi Member Posts: 8
Photogenic First Comment
**
edited August 2023 in Materials

Is it possible to bulk fetch the release states of a list of Record objects using the Streamlined STK? Looking at the .release_state property of the Record class, it looks like the .release_state property makes an individual call on first access.

For some of the other record properties, such as color, or short_name, that data is stored in a pseudo attribute, which I can bulk fetch easily.

If I have a list of 1000 records that I'd like to see the release state on, that's a lot of individual calls to MI and is likely to be very slow.

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 267
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    There's a method on the Session object bulk_fetch_release_states. I think this should do what you need.