This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
Hashes are stored in database as hex encoded binary instead of raw binary #42
Labels
bug
Something isn't working
PostgreSQL is able to store binary strings and queries with display them sensibly as hex. Eg for the
db-sync
database:The above hashes were stored as raw binary
ByteString
and Postgres just does the right thing.By contrast,
smash
stores hashes in the database as hex encodedByteString
s eg:This is bad because query results take up twice as much real estate as the raw
ByteString
version and the hashes need to be hex decoded before they can be compared to values in thedb-sync
database.The text was updated successfully, but these errors were encountered: