Find Jobs
Hire Freelancers

Mysql script to roll up individual incoming results into another table.

$50-150 USD

Completed
Posted over 3 years ago

$50-150 USD

Paid on delivery
There is a continuous process writing raw results into our table. The base concept of the service is two audio streams are being compared. There is a stream (radio station) that is matched against tracks. The raw results will have: - stream_id (int) - track_id (int) - client_id (int) - stream_match_time (datetime) - track_match_time (datetime) Each individual result represents 2 seconds of time. The end goal of the edited results is to provide the following: - external_client_id (int) - stream_id (int) - track_id (int) -stream_match_time_start to stream_match_time_end -track_match_time_start to track_match_time_end -total_actual_duration There are the rules to apply: 1. rolled up results are unique to external_client_id and track_id 2. rolled up results are based off of time_delta in seconds which is (stream_match_time - track_match_time) 3. If possible some jitter allowed in the delta which can be a variable (as an example +-1 second) 4. Each client will have an individual rule set to be applied to the rolled up results a) min_duration is Minimum match duration. As an example, if set to 10 seconds results will not be reported if the roller up result does not span 10 seconds or more in the track. b) max_gap is the maximum time gap we bridge between matches. As an example there are matches to second 0 2 8 10 12 16 in the track. If the max_gap is defined as 2 seconds and the min_duration is 10 seconds., There is a gap of 4 seconds between 2-8 (remember match at 2 spans 2 seconds) that is not bridged . There is a gap of 2 seconds between 12-16 that we bridge. There would be 2 bridged results: 1. 0-4 seconds (0 2) 2. 8-18 (8,10,12,(14 bridged), 16) Result 1 is less than min_duration so it is not reported in the rolled up results. Results 2 is 18-8 = 10 seconds which satisfies min_duration so its reported. The total_actual_duration would be total time 10 seconds minus any gaps bridged (this example 2 seconds) which would make it 8 seconds. Keep in mind you can have multiple bridges across a rolled up match. The query should run on every raw match insertion if possible or have a method of knowing what has been processed and what has not been process. I'm open to the possibility of doing this in python but prefer to do this as an sql script to limit moving parts. There are two tables in the sample csv provided.
Project ID: 27276691

About the project

7 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, We are expert software engineers working in big companies like group PSA & Capgemini. We can help you build your MySQL script. Let’s chat and talk about details
$167 USD in 3 days
5.0 (15 reviews)
4.3
4.3
User Avatar
Hello, I can work on writing this script as SQL (assuming this is to be implemented in MySQL based on proposal tags) inserting the processed data into a database table, and then validating against it for history checks. Depending on how this query is implemented, we can define the frequency for the insert/rollup calculation. I am available to work on this task immediately during US afternoon time. Let me know if this works for you. Regards, Gabriel
$90 USD in 3 days
5.0 (1 review)
1.9
1.9
7 freelancers are bidding on average $123 USD for this job
User Avatar
Hello, Ravosh How are you? PHP, MYSQL are my really talent skills. As a professional back-end developer, I have 7+ years of experience in Website building and customization. Let's achieve success together. Please message me so that we can discuss your project in detail. Hope to be working with you.
$150 USD in 2 days
5.0 (14 reviews)
6.0
6.0
User Avatar
Hi! Hope you are doing great. I can help you in this project. I am available to start working on the project immediately
$150 USD in 7 days
4.9 (20 reviews)
5.0
5.0
User Avatar
Hello! I can provide you full support for this project. I have high experience with web technologies and I am pretty sure I can help you. So, let's start!
$75 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
LAHAINA, United States
5.0
46
Payment method verified
Member since Jul 9, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.