1. A method for querying data in a database, wherein the database runs in a computer system comprising a central processing unit, CPU and a graphics processing unit, GPU, and the method comprises: receiving a query instruction, wherein the query instruction comprises one or more query conditions; determining a status of each block index comprised in a block index set prestored in a global memory of the GPU, wherein the block index set comprises at least one block index, and the block index set is generated by the CPU according to original data in the database and is stored into the global memory of the GPU; and when each block index in the global memory of the GPU is in an asynchronous state, starting one or more GPU processes to filter the block index in the global memory of the GPU according to the one or more query conditions, to obtain a first block index query result; and determining a final data query result according to the first block index query result.