Adam Cameron
cf_session_data table...Adam Cameron
cfid, name, and another index on expires. But then the sample query you show doesn't actually do that:
CREATE TABLE IF NOT EXISTS `cf_session_data` (
`expires` varchar(64) NOT NULL,
`cfid` varchar(64) NOT NULL,
`name` varchar(255) NOT NULL,
`data` text NOT NULL,
UNIQUE KEY `ix_cf_session_data` (`cfid`,`name`,`expires`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
No primary key, and just an unique index on all three of those columns.
To compare, the narrative describes this sort of thing:
CREATE TABLE `cf_session_data` (
`expires` varchar(64) NOT NULL,
`cfid` varchar(64) NOT NULL,
`name` varchar(255) NOT NULL,
`data` longtext NOT NULL,
PRIMARY KEY (`cfid`,`name`),
UNIQUE KEY `ix_cf_session_data` (`expires`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Which should it be? And do you not think the guidance should match the code 😉zackster
05/10/2023, 4:13 PMAndreas
05/11/2023, 1:35 PM