ploadText

Syntax

ploadText(filename, [delimiter], [schema], [skipRows=0], [arrayDelimiter])

Arguments

Please refer to function loadText.

Details

Load a text data file in parallel as an in-memory partitioned table. It returns a in-memory table with sequential partitions. ploadText is faster than loadText.

Note: From version 1.30.22 onwards, function ploadText supports loading a data file that contains a record with multiple newlines.

Examples

$ n=1000000
$ timestamp=09:30:00+rand(18000,n)
$ ID=rand(100,n)
$ qty=100*(1+rand(100,n))
$ price=5.0+rand(100.0,n)
$ t1 = table(timestamp,ID,qty,price)
$ saveText(t1, "C:/DolphinDB/Data/t1.txt");

$ timer tt1=loadText("C:/DolphinDB/Data/t1.txt");
Time elapsed: 437.236 ms

$ timer tt2=ploadText("C:/DolphinDB/Data/t1.txt");
$ Time elapsed: 241.126 ms

$ typestr(tt2);
$ SEGMENTED IN-MEMORY TABLE

For more examples please refer to loadText.