[fixed] greatly improved the UI performance with large databases

Change-Id: I260f5b1014d8f90789267fbb67f1896a8173aeaf