[Interest] SQLite: mystic bug: No query Unable to fetch row error

Thiago Macieira thiago.macieira at intel.com
Sat Jan 16 17:16:22 CET 2021


On Saturday, 16 January 2021 02:33:09 PST Alexander Dyagilev wrote:
> Actually, the code is this:

You may want to look at the overhead you're creating...

So, you create 128 bits (16 bytes) of data of UUID, but then you save into 
your database a QDataStream payload containing a QString encoding of the text 
representation of the UUID with dashes but without braces.

UUID data = 16 bytes
UUID in text form = 35 characters
UUID in UTF-16 = 70 bytes
UUID in QDataStream payload = 74 bytes

Overhead = 462.5%

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Interest mailing list