简体   繁体   English

OLEDB 或 ODBC 直接导入查询时出错

[英]OLEDB or ODBC Error when Direct importing Query

I have a query that has around 160 million rows that would take me 4 hours to import into Power BI.我有一个包含大约 1.6 亿行的查询,这需要我 4 个小时才能导入 Power BI。

Ever since my company changed their server to Azure, I can never import this query successfully.自从我公司将他们的服务器更改为 Azure 后,我永远无法成功导入此查询。 It would start loading for 1 million rows-ish, after 1 minute or two this error always pops out.它将开始加载 100 万行,一两分钟后总是会弹出这个错误。

I tried:我试过了:

  1. changing the command time out to 200 minutes, still errors out within loading for a minute or two, sometimes within 10 seconds将命令超时更改为 200 分钟,在加载一两分钟内仍然出错,有时在 10 秒内
  2. if I select top 1000 rows in my query, it will complete without error.如果我在查询中 select 前 1000 行,它将完成而不会出错。 But when I switch back to the original query, it always fails.但是当我切换回原始查询时,它总是失败。

Attaching the error message.附上错误信息。 I have talked to the DE in my team and they don't seem to have a clue.我已经与团队中的 DE 进行了交谈,但他们似乎没有任何线索。 Does anyone have any idea on how to fix this?有谁知道如何解决这个问题?

this is the error message这是错误信息

We had the same problem and went for a delta lake in combination with option 1.我们遇到了同样的问题,并结合选项 1 选择了三角洲湖。

  1. You have to ask your self first why you are importing so much data.您必须先问自己为什么要导入如此多的数据。 Always keep your model as small as possible.始终保持 model 尽可能小。 I can't imagine you are looking at every row.我无法想象你正在查看每一行。 If this is needed you could you could use a combination of direct query for details and loading an aggregate for your reporting.如果需要,您可以结合使用直接查询详细信息和为报告加载汇总。 But load aggregates instead of everything.但是加载聚合而不是所有内容。
  2. Maybe your can load less history, like the last two years.也许您可以加载更少的历史记录,例如过去两年。
  3. You could look into loading incrementally, you could load per partition.您可以考虑增量加载,您可以按分区加载。
  4. You can try to increase the DTU's for your server.您可以尝试增加服务器的 DTU。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM