add spatial index, and table engine custom