The present invention provides a data loading method, device, electronic device and storage medium, which can be applied to the field of electronic
digital data processing. The method includes: based on the space occupied by the data block parameter, using a reading thread to read the
data file and generate an initial data block;
processing the initial data block to generate a target data block, the target data block represents a data block marked with a
parsing termination position, and the target data block is stored in a blocking data block
queue; based on the
parsing termination position, using a
parsing thread to parse the target data block and generate at least one initial row data, the parsing thread is parallel to the reading thread, the initial row data represents data marked with a column position, and at least one initial row data is stored in a blocking data row
queue; based on the column position, performing column data assignment
processing on at least one initial row data in the blocking data row
queue to obtain the target row data; using a data operation language to batch load the target row data into a
target database.