1
私はこのクエリを実行しようとした:Rでmysql update queryを実行する高速化方法はありますか? Pythonで?
update table1 A
set number = (select count(distinct(id)) from table2 B where B.col1 = A.col1 or B.col2 = A.col2);
が、TABLE1が1,100,000行を持っており、表2は350,000,000行を持っている紀元前それが永遠にかかります。
Rでこのクエリを実行する方法はありますか?またはPythonで?
あなたはpandas(ライブラリをPythonで試すことができます) – ashish