4 minutes for 21 API calls?

 
    • mikeh7 disse...
    • Usuário
    • Abr 12 2012, 16h25

    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 disse...
    • Usuário
    • Abr 13 2012, 16h37
    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.

    Editado por marc2003 em Abr 13 2012, 17h13
    • tburny disse...
    • Forum Moderator
    • Abr 13 2012, 17h09
    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 disse...
    • Usuário
    • Abr 14 2012, 13h26
    Ok, thank you both.

    • dunk disse...
    • Alumni
    • Abr 19 2012, 14h30
    Everyone's API calls area treated equally.

Usuários anônimos não podem postar mensagens. É preciso fazer login ou criar uma conta para postar nos fóruns.