Forums Register Login

BiTSet storage and comparaison

+Pie Number of slices to send: Send
Hello !

I would like to store into MySQL BitSet objects. I am able to only use a string to do that :

This string could be verry big comparred to the object itself (more than 5 ko).
Is it possible to be more efficient to store this BitSet into MySQL ?
One solution is to store the binary string (0010110...), which could have a lower weight than the strSubSet. But I don't kown how to obtaine it .

The second point is that I have to compare the stored BitSet (10000 or more) with one BitSet submited by somebody. What is the best way to say that subBitSet is a subset of the stored BitSet number 10, ex :
BitSet : 00010100110
submit : 00010000100

here submit is a subset of BitSet. The way I use is :
But that work only with the BitSet which I am not able to store in MySQL.

Any comment would be appreciated,
Jean-Marie
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1112 times.
Similar Threads
Understanding Byte Data and Character Encoding
BitSet class
Banning concrete inheritance
Cloning Question
Bitset Operations - any alternatives to this code?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:17:40.