add indexes in temp table not in user table

This commit is contained in:
Carla 2016-07-19 17:57:34 +02:00 committed by GitHub
parent 91b1648f12
commit 5f32f7e2cd

View File

@ -127,7 +127,7 @@ RETURNS boolean AS $$
) )
# Add index to cartodb_id # 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) .format(user_schema=user_schema, table_name=table_name)
) )