1. A computer-implemented method for searching in a database, comprising: in response to receiving a search request to search in a database, extracting from the search request a condition for searching in the database; selecting a search algorithm matching the condition from a plurality of search algorithms registered to the database, based on historical statistic data of a historical search conducted on the database; and obtaining a search result from the database by using the search algorithm, wherein the database is a time series database.