Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Efficient way to store hashes in database ?
08-07-2012, 08:07 PM
Post: #4
RE: Efficient way to store hashes in database ?
Encoding the hashes in base64 will not get you the fastest processing time for storage and retrieval. In-fact, it will hurt your stats for sure.

There are MANY factors to consider with MySQL, including the table engines, table structures, and usage of the tables and data.

If you want to gain a little performance in storage, don't convert the values to hex, use hex literals instead. For example:

Code:
insert into table (hex_col) values (0xHEXVALUE);

Additionally, depending on what this table will be used for and how the data will be used, you could try to optimize it by using memory tables to gain significant performance.

The thing to remember here, though, is that everything is relative.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Efficient way to store hashes in database ? - unix-ninja - 08-07-2012 08:07 PM