update demo
optimize the code performance

more less query as soon as possible