Searching in database-partitioning