Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:06:12+00:00 2026-05-31T02:06:12+00:00

I need to write search functionality for a website full of videos. The videos

  • 0

I need to write search functionality for a website full of videos. The videos are hosted by a 3rd party online video platform (OVP) like brightcove, kaltura, ooyala etc… The OVP offers a search API. The OVP holds the following information for each video: title, description, is_published, duration, tags and create_date. The search API easily performs search and sorting on these fields.

However, I would like to ascribe more information to each video such as: available close cap langauges, number of views, number of likes, most popular in past month etc… I suppose the best way for me to store this data is in my own database table, with a FK video_id that relates to the video_id in the OVP’s video database table.

If I want to search for videos across fields in both the OVPs video database table via their API and the my own video database table tbl_video_meta_data via SQL statements, how should I do it?

I thought of two solutions, but not sure if either of them are a good idea, or if there are other alternatives to consider

1) Perform a search via the OVP search API based on its supported fields. Then perform a separate search within my own tbl_video_meta_data based on its own available fields. Then display records that are common to both search results. In this approach, I’m worried about the performance of doing two separate searches, and then filtering them again at the coding level instead of using SQL to do all this.

2) I should have a cronjob that periodically fetches video data from the OVP and loads it to a tbl_video_cache. tbl_video_cache is truncated each time this happens. My table tbl_video_meta_data will of course have an FK video_id that relates to tbl_video_cache. Now I can perform a SQL search on both tables via JOIN. Actually, now that I think about it….this seems to be the best approach.

I think I will go with 2, but curious to know if there are any drawbacks to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:06:13+00:00Added an answer on May 31, 2026 at 2:06 am

    I just went with 2)

    2) I should have a cronjob that periodically fetches video data from the OVP and loads it to a tbl_video_cache. tbl_video_cache is truncated each time this happens. My table tbl_video_meta_data will of course have an FK video_id that relates to tbl_video_cache. Now I can perform a SQL search on both tables via JOIN. Actually, now that I think about it….this seems to be the best approach

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PROBLEM: I need to write an advanced search functionality for a website. All the
I need your help with my website search functionality. I'm developing a members area
I need to write effective and quick method to search byte array for given
I need to write an AS3 program to search for a certain keyword in
We need to write code to search for, pair and connect to a bluetooth
I need to write a SQL Query for Advance search form shown as Image
I need to write a query that will perform a keyword search on a
I need to write a tree search method which takes a type parameter T
I need to write two classes like this: class Item(Base, DBBase): __tablename__ = 'items'
I would like to use the functionality of CodeMirror (such as linenumbering, wrapping, search,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.