Fetching data from Statistics Canada is painfully slow

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

random_user
Posts: 28
Joined: Wed Jun 23, 2021 1:48 pm

Fetching data from Statistics Canada is painfully slow

Postby random_user » Fri Apr 25, 2025 2:25 pm

First: thanks to the EViews team for adding the Statistics Canada data connectivity feature. It's pretty handy to have!

But, at the moment, its usefulness is severely limited by the fact that it takes a very long time for me to fetch data from it. I will share some details below about that.

Code: Select all

mode quiet %data = "INSERT SERIES HERE (SUPPRESSED)" tic table clock !n = 1 For %1 {%data} fetch(db=statcan) {%1} clock(!n,1) = !n clock(!n,2) = @toc !n = !n+1 Next delete df* 'Fetch a second time: tic table clock2 !n = 1 For %1 {%data} fetch(db=statcan) {%1} clock2(!n,1) = !n clock2(!n,2) = @toc !n = !n+1 Next


In this example, I fetched 148 series and it took 26 minutes!

What's interesting is that once the data is fetched, fetching it again shortly after time takes very little time (6.4 seconds).

Is this normal? Is there anything that could be done?

Thanks!
Attachments
time taken to fetch.png
time taken to fetch.png (6.83 KiB) Viewed 34587 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Fetching data from Statistics Canada is painfully slow

Postby EViews Gareth » Fri Apr 25, 2025 3:03 pm

Its probably just a really large download that StatCan is sending. The reason it is fast the second is that we cache it.

random_user
Posts: 28
Joined: Wed Jun 23, 2021 1:48 pm

Re: Fetching data from Statistics Canada is painfully slow

Postby random_user » Mon Apr 28, 2025 7:20 am

Thanks for the quick response. I understand it may be a very large download, but if there's anything that can be done to make it smaller (or download faster) in the future, that would make the feature much more helpful.

For example, in my case, all these series were being downloaded from the very same table. So, it seems like if an entire table is being downloaded, it's being downloaded repeatedly and unnecessarily? Maybe something to look into....

random_user
Posts: 28
Joined: Wed Jun 23, 2021 1:48 pm

Re: Fetching data from Statistics Canada is painfully slow

Postby random_user » Mon May 05, 2025 1:13 pm

Follow-up question: could the data description also be added fetched?

For example, it would be nice to see a description of the series added as a series attribute.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests