add indexes in temp table not in user table
This commit is contained in:
parent
91b1648f12
commit
5f32f7e2cd
@ -127,7 +127,7 @@ RETURNS boolean AS $$
|
||||
)
|
||||
|
||||
# Add index to cartodb_id
|
||||
plpy.execute('CREATE UNIQUE INDEX {table_name}_pkey ON "{user_schema}".{table_name} (cartodb_id)'
|
||||
plpy.execute('CREATE UNIQUE INDEX {temp_table_name}_pkey ON "{user_schema}".{temp_table_name} (cartodb_id)'
|
||||
.format(user_schema=user_schema, table_name=table_name)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user