Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
djangoモデル(mysqlバックエンド)内に大きなビット配列を格納するための最良の方法は何でしょうか?
たとえば、このオブジェクトをどのように保存できますか?
import bitarray bits = bitarray.bitarray('11000101010') #real data is 35k bits long
CharFieldに押し込むだけでいいですか?
MySQLには、検討する価値のあるBLOBフィールドタイプがあります。
または、長さの前に9KB未満の長さの16進文字列に変換することもできます。
"11,C54"
またはASCII-85は、16進数よりも占有するスペースが少なくなります。