is there a canonical way to partition a table by referenced data to another table?
for example
timetable
id
datetime
bigtable
id
timetable_id -- foreign key
.. other data ..
i want to partition bigtable by the datetime in timetable. thankx.
As noted here, he partitioning column must be a part of all unique indexes on the table, which would include your primary key.
I think your only choice here would be to denormalize the
timetable.datetimecolumn intobigtableso that the column is available for partitioning.