Closed (fixed)
Project:
Ooyala
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2011 at 23:32 UTC
Updated:
13 Aug 2011 at 18:21 UTC
Jump to comment: Most recent file

Comments
Comment #1
sirkitree commentedThis one is a bit more reliable.
Comment #2
quicksketchThis is a good UI improvement but may be a pretty serious performance problem. I'm not clear on if the video information has already been cached, but if it's not then it looks like this would do one HTTP request for each video in the list, which could cause a pretty significant slowdown when loading the page.
Updating title to reflect the feature, this just needs further review to ensure this isn't going to cause a problem.
Comment #3
deviantintegral commentedHere's an untested reroll that applies against master. I broke this down into separate commits, and also added a newline to deal with diff errors.
Comment #4
deviantintegral commentedThe video imported status is based on the local table, so outbound HTTP requests are not being used to determine the status.
However, I think it makes more sense to do one DB query instead of calling the function multiple times. Here's a patch that takes an array of keys instead of a single key. New commits include:
#1015112: Remove spaces from empty line.
#1015112: Fetch all video statuses in one SQL query.
#1015112: Only fetch video statuses if at least one key is passed in.
#1015112: Add documentation for the ooyala_get_status() function.
Comment #5
deviantintegral commentedI've committed the patch from #4.