Apache Ignite create语句中的多个affinity_键
大家好,我想在ApacheIgnite中创建一个表,表中有两个外键(查询索引)Apache Ignite create语句中的多个affinity_键,ignite,Ignite,大家好,我想在ApacheIgnite中创建一个表,表中有两个外键(查询索引) CREATE TABLE `users_roles` ( `users_rolesId` bigint(20) unsigned NOT NULL, `userId` bigint(20) , `roleId` bigint(20) , `createdOn` timestamp , `modifiedOn` timestamp, `createdBy` bigint(20), `modi
CREATE TABLE `users_roles` (
`users_rolesId` bigint(20) unsigned NOT NULL,
`userId` bigint(20) ,
`roleId` bigint(20) ,
`createdOn` timestamp ,
`modifiedOn` timestamp,
`createdBy` bigint(20),
`modifiedBy` bigint(20),
`isActive` bit(1) ,
PRIMARY KEY (`users_rolesId`))WITH "backups=1,affinity_key=userId,affinity_key=roleId"
但这给了我一个例外:
SQL Error [1001] [42000]: Duplicate parameter: affinity_key=roleId
那么,如何在create语句中指定多个查询索引呢?这里有两个问题:
role\u id
上的关联键这里有两个问题:
role\u id
上的关联键