It depends. Glide does not do atomic operations, so if it is essential that you should never have duplicates, then you should use the solution shown in the video.
Otherwise, see below:
It depends. Glide does not do atomic operations, so if it is essential that you should never have duplicates, then you should use the solution shown in the video.
Otherwise, see below: