New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest Postgres ENUM type for 'classtype' column for tables with inheritance #95
Comments
The suggestion about index on |
#97 created. What about ENUM? |
The suggestion to use enum for discriminator column looks interesting, but i think that we should implement migrations at first, because it will be necessary to change enum when new entities are added/deleted |
#16 -- just issue reference. |
Also, Enum support is also may mean Python 3.4 ( https://docs.python.org/3/library/enum.html ) enum support as columnt type. End eventually, may be, enum emulation for older Pythons (which is useful for columns like gender or other discrete values) |
Hi Has there been any movement on this issue? Python is on version 3.6 now so I assume this can be (or is) supported now? |
http://www.postgresql.org/docs/9.3/static/datatype-enum.html:
pros:
4-bytes per column
cons:
63-bytes names only
Also (not sure) Pony should add index on
classtype
columns for queries likeInheritedTable.select(...)
. But this index should be controllable (something likeindex=False
). If you agree, I will create separate issue.The text was updated successfully, but these errors were encountered: