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



0
0
0.000
1 comments
avatar

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

0
0
0.000