SQL query limits on matlab database toolbox
古いコメントを表示
Hello, I have an instance where I suspect Matlab might be not allowing a large SQL Select query to be processed.
Are there any settings in setdbpref or elsewhere that constrains matlab to small queries?
Thanks, AMK
回答 (1 件)
the cyclist
2013 年 9 月 10 日
編集済み: the cyclist
2013 年 9 月 10 日
1 投票
This page
discusses Java heap memory issues with importing large query results.
I personally have not had success in processing queries in batches via the method described there. For my large queries (~millions of rows), I have needed to wrap the query in a for loop, and use SQL's "offset" and "limit" clauses to do the batching within SQL.
4 件のコメント
Adam
2013 年 9 月 10 日
the cyclist
2013 年 9 月 10 日
In that case, on the machine where this does not work, check
Preferences -> General -> Java heap space
and make sure it is at 256MB.
You may need to restart MATLAB afterward.
Adam
2013 年 9 月 10 日
the cyclist
2013 年 9 月 11 日
It might be nice to "accept" this answer, which may help a future user seeking similar help.
カテゴリ
ヘルプ センター および File Exchange で Database Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!