Quickly finding a matching List?

P

Paul Tomblin

I've got a class (ShowPlaylist) which contains a List of other objects
where are instances of another class (CompositionPlaylist). Both classes
are stored in relational database tables. I need to quickly find which
ShowPlaylist contains a particular List of CompositionPlaylists and
retrieve it from the database. An idea I just had would be for each
ShowPlaylist to compute an MD5 hash of the UUIDs of each
CompositionPlaylist in the List and store that in one column in the
ShowPlaylist table. Can I be sure the hash would always be the same if
the UUIDs were the same and in the exact same order, and reasonably sure
it would be different if there were any differences in content or order?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top