RE: [ENG/ITA] Python & Hive: My Scripts are Ready! My First Project is Completed :)
You are viewing a single comment's thread:
I am lazy and didn't bother, since I could 'time' it in the terminal.
Well, I had no idea you could do that ๐ what you can do through terminal is still a bit oscure to me, because I'm not used to it, so I have no idea of its flexibility and power!
My current script, that I spruced up with your enhancements:
Wow, this one is crazy fast! Now I'm going to read your new post :)
Session only makes things faster if you do multiple calls to the API
It's the only thing I understand of this "Session" stuff ๐ because I still have to figure what parameters/values it keeps and if it can be used whatever I make more calls to an API or only if the calls are somehow linked or else... I have no idea tbh ahahah
Heh, it wasn't immediately clear for me either, although I had an inkling. Here's how I eventually understood the concept myself: The idea with sessions is that when you use one, you're keeping the connection to the server open, so you don't need to create a new connection for each API call. Itโs like having an uninterrupted "conversation" with the server, rather than hanging up and redialing for every single message. This can save time and resources, especially when youโre making multiple API calls within the same session.
!PIZZA