Best way to have a large list of Ids with a corresponding image set to it?

Don’t use an enum for this. Load the csv into a DataTable, you can then fetch by row name.

I have a game with a large number of images, over 1000. I want to access each image based on a given Id. So for example…

+---+-------------+
| 1 | Picture_001
+---+-------------+
| 2 | Picture_002
+---+-------------+
| 3 | Picture_003 

I thought about an enum with a switch or a map but both are unrealistic with over 1000 images.

I then thought about reading from a CSV file but I’m not sure if that will be slow for a UI that may need to draw, say, 30 of these images at a time.

I’ve also thought about instead of the Id referencing an image, it could reference an Id of a blueprint of the item I want to set the image to. But then I still need a way to get the item via Id.

This is meant to be used with a database so I need this Id pattern.
Does anyone know an appropriate way for tackling this? Thanks!