4 minutes for 21 API calls?

 
    • mikeh7 sa...
    • Användare
    • 12 apr 2012, 16:25

    4 minutes for 21 API calls?

    I'm making a simple PHP application that makes about 20 calls to the user.getrecenttracks method and one to user.getshouts, all of which are limited at the max 200 records. These calls take about four minutes total. I have a non-commercial key. Does anyone know whether calls with a non-commercial key are much slower than with a commercial key?

    • marc2003 sa...
    • Användare
    • 13 apr 2012, 16:37
    i don't think your API key has anything to do with it. i've tested library.gettracks fetching a user's entire library with a 100 results per page and hundreds of pages in less time than that.

    Redigerad av marc2003 den 13 apr 2012, 17:13
    • tburny sa...
    • Forum Moderator
    • 13 apr 2012, 17:09
    I think you should use tools like traceroute to find out where it is becoming slow

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi | Cache2k - A high performance Java in-memory cache
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
    • mikeh7 sa...
    • Användare
    • 14 apr 2012, 13:26
    Ok, thank you both.

    • dunk sa...
    • Alumni
    • 19 apr 2012, 14:30
    Everyone's API calls area treated equally.

Anonyma användare kan inte skriva inlägg. Vänligen logga in eller skapa ett konto för att göra inlägg i forumen.