Hiš
I have an AI image generation app where I make an API call and get a webhook back with image URL.
This is how my APP is set up right now:
- After clicking the button āgenerateā a new āimage_genā thing is created with ID that is retrived after making the API call.
- When the APP receives the webhook new āLogā thing is created with image URL and ID.
- After the āLogā is created the next step is to make changes to the correct āimage_genā thing updating image URL field. (āimage_genā now has a user in ācreated byā field) and at last custom state is updated with the ID
- Image is diplayed by searching for the correct āimage_genā ID
- Now user has to click āadd to libraryā to add image URL to his āgenerated imagesā list (field in User: list of images)
When I want to display all images generated by a user in āLibraryā in a repeating group the fields are set to:
I am wondering if this is way of storing and displaying images is efficient?
or would it be better if instead of saving image URLs to a field in User (list of images) to save it as list of āimage_genā. But this means I would have to display images in a repeating group by doing a search which I consumes a lot of workload units.
I hope this makes senseš