Changes between Version 4 and Version 6 of Ticket #35941
- Timestamp:
- Dec 2, 2024, 1:11:26 AM (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35941
- Property Cc added
- Property Has patch set
-
Ticket #35941 – Description
v4 v6 8 8 2. ''CompositePrimaryKey'' is stored as a ''JSON array'' in `object_id` 9 9 3. JOINs can be achieved with JSON functions (varies per db backend) 10 11 *Joins:* 12 13 After some experimentation with JSON functions, I believe the simplest solution is to construct JOINs like this: 14 15 {{{ 16 JOIN ON ((object_id::jsonb)->>0)::integer = id 17 AND ((object_id::jsonb)->>1)::uuid = uuid 18 }}} 19 20 Casting is a pain point, especially when joining on `DateTimeField`s, as we need to make sure the two columns are in the same format. 10 21 11 22 **Risks:**