@@ -24,7 +24,7 @@ or eccentric enumeration cases.
2424
2525 The marshalling penalty can be eliminated by setting ``coerce `` to
2626 ``False ``. This will require the developer to manually coerce the
27- `` EnumField ` ` value to an Enum _ type object and is therefore usually
27+ :class: ` ~django_enum.fields. EnumField ` value to an Enum _ type object and is therefore usually
2828 not recommended - but may be appropriate if the dominate use case involves
2929 high volume serialization to a raw value instead.
3030
@@ -40,7 +40,7 @@ There is an obvious storage improvement when using a single column bit mask inst
4040we achieve better query performance as well? The following benchmarks compare storage and query
4141performance between boolean columns and bit masks.
4242
43- **Using a flag ** `` EnumField ` ` **out performs boolean columns in both
43+ **Using a flag ** :class: ` ~django_enum.fields. EnumField ` **out performs boolean columns in both
4444storage and query performance in most scenarios. **
4545
4646.. note ::
@@ -57,7 +57,7 @@ storage and query performance in most scenarios.**
5757No Indexing
5858-----------
5959
60- When no indexes are used, the flag `` EnumField ` ` saves a significant amount
60+ When no indexes are used, the flag :class: ` ~django_enum.fields. EnumField ` saves a significant amount
6161of space over the boolean column model. The following plot shows the storage
6262efficiency improvement over boolean columns as the number of flags increases
6363for each supported RDBMS. The oracle line shows extents which are allocated in
@@ -94,13 +94,14 @@ does a full table scan:
9494Indexed Exact Queries
9595---------------------
9696
97- When an index is used, the flag `` EnumField ` ` marginally outperforms the
97+ When an index is used, the flag :class: ` ~django_enum.fields. EnumField ` marginally outperforms the
9898boolean column equivalent in both storage and query performance for exact match
9999queries. It is also much simpler to define. When using the boolean column
100100approach a multi-column index must be used. By default PostgreSQL is compiled
101101with a maximum multi-column index size of 32 columns. This means that masks
102102with more than 32 flags must be split into multiple multi-column indexes which
103- will further degrade performance compared to the equivalent flag ``EnumField ``.
103+ will further degrade performance compared to the equivalent flag
104+ :class: `~django_enum.fields.EnumField `.
104105
105106The multi-column limit on MySQL is only 16 columns.
106107
0 commit comments