I’m being asked to add queryability to a database (Oracle) filled with mostly binary data. So I need to be able to query binary ranges within a blobs of a few kilobytes. I’ve never done this before, so I’m wondering what are some good practices and pitfalls to consider when starting a project like this.
Thanks
Add a column of MD5, which is the MD5 checksum of the BLOB data. Or, you can create a new table with the same primary key and the MD5 column.
Your cache module outside the database can make use of that column not to have to retrieve the BLOB column twice in a cache-hit.
OR, you could drop the BLOB data in the database and store it in a file system with the MD5 value as a filename with an http server as a network file server.