on 12-15-2021 9:10 AM
Hi,
It is possible to drop and recreate (or disable/enable) spatial indexing in Hana? I have not found such commands from anywhere.
That is, we have to import a lot of spatial data into SAP Hana, and I think it would be much quicker if we could load data into the table that has no spatial index. And after the data load is completed we could create the spatial index.
The spatial column in our table is something like this
CREATE COLUMN TABLE TABLE_A (GEOLOC ST_GEOMETRY(3067) CS_GEOMETRY INTERNAL LAYOUT PLAIN SPATIAL INDEX PREFERENCE DEFAULT VALIDATION NONE BOUNDARY CHECK OFF)
Hi Hannu,
It is not possible to disable the spatial index.
However, the spatial index is not built when you insert a new geometry, but only when the newly inserted geometries are consolidated from the so-called delta part into the so-called main part, which happens in the background (or when the first query with a spatial filter is executed). Hence, the spatial index won't have an influence on insert performance.
If you can control the data insert logic, you can accelerate data inserts by
Best regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stefan,
" ... but only when the newly inserted geometries are consolidated from the so-called delta part into the so-called main part ..."
Apparently we have done correct moves, because we discovered that disabling auto merge before inserting the data accelerated the job a lot. And the reason why it accelerated is the spatial index.
Thanks !!
Hannu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.