Get username from media entry's userID


Whats’ the fastest way to get a username from user ID? Apparently, the KalturaMediaEntry only contains the User ID.

I’ve been doing this to grab username from user ID:

KalturaUser user = client.UserService.Get(entry.UserId)

However, this takes a LONG time. If I search for some videos, it takes around 70 milliseconds to grab each username with this method. This makes my search engine really slow at displaying many search results.

Is there an easier/quicker way to do this?

Does anyone have any ideas/thoughts?

I don’t think there is alternative API, but in worst case you can create your own API that queries the MYSQL db.

I would not recommend querying the DB directly in any case. I will check the code to see if I can reproduce it being slow.