JuliaDatabases / JDBC.jl

Julia interface to Java database drivers
Other
38 stars 19 forks source link

Multithreading not working #60

Open walter-weinmann opened 2 years ago

walter-weinmann commented 2 years ago

Code:

        @threads for partition_key = 1:benchmark_number_partitions
            println("multithreaded threadid=$(threadid())")
            run_select_helper(
                size(bulk_data_partitions[partition_key], 1),
                partition_key,
                sql_select,
                statements[partition_key],
                trial_number,
            )
        end

Source: https://github.com/KonnexionsGmbH/ora_bench/blob/master/lang/julia/OraBenchJdbc.jl

Protocol:

always the same tread id !

Start trial no. 1
multithreaded threadid=1
Start insert partition_key=1)
End   insert partition_key=1)
multithreaded threadid=1
Start insert partition_key=2)
End   insert partition_key=2)
multithreaded threadid=1
Start insert partition_key=3)
End   insert partition_key=3)
multithreaded threadid=1
Start insert partition_key=4)
End   insert partition_key=4)
multithreaded threadid=1
Start insert partition_key=5)
End   insert partition_key=5)
multithreaded threadid=1