rinat icon indicating copy to clipboard operation
rinat copied to clipboard

Different executing time of get_inat_obs_user

Open TlaskalV opened this issue 4 years ago • 1 comments

Hello, I found out that time needed to download per user observations differs largely between users. Do you know the reason? Is it due to different geographic storage of the data or is it restricted by API request number (e.g. issue here)? Is there any workaround to access single user observations faster?

Below are few tests, why it takes so long for friel with only 300?

Time to download 300 observations of the user friel > system.time({ table <- rinat::get_inat_obs_user(username = "friel", maxresults = 300) }) user system elapsed 3.92 0.07 94.66

300 observations for zdekanovkov > system.time({ table <- rinat::get_inat_obs_user(username = "zdekanovkov", maxresults = 300) }) user system elapsed 0.7 0.0 14.8

1500 observations for zdekanovkov - still shorter than for friel > system.time({ table <- rinat::get_inat_obs_user(username = "zdekanovkov", maxresults = 1500) }) user system elapsed 0.71 0.00 15.67

respectable 50 000 observations for finatic (no. 3 user in total, note the time which is comparable to the first result) > system.time({ table <- rinat::get_inat_obs_user(username = "finatic", maxresults = 300) }) user system elapsed 4.17 0.08 109.93

TlaskalV avatar Nov 01 '19 16:11 TlaskalV