Re: [Django] #36101: Support BIT data type model field for MySQL and PostgreSQL
5 views
Skip to first unread message
Django
unread,
Jan 15, 2025, 12:57:43 PM1/15/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36101: Support BIT data type model field for MySQL and PostgreSQL
-------------------------------------+-------------------------------------
Reporter: Jordan Bae | Owner: (none)
Type: New feature | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
This argument could stand for pretty much any type that database support
and Django doesn't have a field equivalent for.
> Efficient storage of boolean flags and bit flags
Apparently `bytea` [https://stackoverflow.com/questions/26635547 /postgresql-difference-between-bytea-and-bit-varying-types is more space
efficient] than `bit varying` on PostgreSQL so if you've reached a point
where the storage of boolean bits and flags is of a concern `BinaryField`
would be a better option on Postgres at least.
> Direct mapping to database-native bit operations
These database-native bit operations would need to be implemented as
lookups and transforms anyway on the ORM side which is something that
could be done with `BinaryField` as well.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36101: Support BIT data type model field for MySQL and PostgreSQL
-------------------------------------+-------------------------------------
Reporter: Jordan Bae | Owner: (none)
Type: New feature | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------