add index demo
resolve problems