Find Jobs
Hire Freelancers

PHP/Mysql reporting system

$30-50 USD

Cancelled
Posted over 12 years ago

$30-50 USD

Paid on delivery
We have a table that has 16M+ rows. Each row is an inserted value with a userid,ltype,type (integers) and timestamp (current_time in 0000-00-00 00:00:00 format) We need a script that can crawl through this data in segments (since it is so large) and when it finds matches (more info on that below) it will then insert that data into another table. For example. for each distinct userid with ltype 0 AND type 1 we want to see the timespan between these inserts and find ones that are too close. So lets say we have the following (note these would be grouped by ltype as we have 0 and 1 ltypes and also type will always be 1 userid time ltype type 55 2011-11-20 00:02:01 1 1 55 2011-11-20 00:02:03 1 1 Userid should NEVER have more than one insert per ltype in a certain timespan (1 minute 20 seconds for example). ...Continued on project details page... ## Deliverables We have a table that has 16M+ rows. Each row is an inserted value with a userid,ltype,type (integers) and timestamp (current_time in 0000-00-00 00:00:00 format) We need a script that can crawl through this data in segments (since it is so large) and when it finds matches (more info on that below) it will then insert that data into another table. For example. for each distinct userid with ltype 0 AND type 1 we want to see the timespan between these inserts and find ones that are too close. So lets say we have the following (note these would be grouped by ltype as we have 0 and 1 ltypes and also type will always be 1 userid time ltype type 55 2011-11-20 00:02:01 1 1 55 2011-11-20 00:02:03 1 1 Userid should NEVER have more than one insert per ltype in a certain timespan (1 minute 20 seconds for example). When they have more than 30 of these (we dont want to find just one as this could be just a system error), we want this userid inserted into another table so we can further investigate this user. Using the above example if the data was... userid time ltype type 55 2011-11-20 00:02:01 1 1 55 2011-11-20 00:05:03 1 1 Then it's fine and we dont do the insert. We need to be able to specify the lytpe we are searching for when the report runs and the timespan. Incase for whatever the script is interrupted, we should use either cookies or sessions so it can resume from where it left off.
Project ID: 3709583

About the project

6 proposals
Remote project
Active 12 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
6 freelancers are bidding on average $36 USD for this job
User Avatar
See private message.
$42.50 USD in 4 days
4.6 (46 reviews)
5.3
5.3
User Avatar
See private message.
$30.60 USD in 4 days
4.8 (54 reviews)
5.0
5.0
User Avatar
See private message.
$42.50 USD in 4 days
5.0 (3 reviews)
1.4
1.4
User Avatar
See private message.
$34 USD in 4 days
5.0 (2 reviews)
0.9
0.9
User Avatar
See private message.
$30.60 USD in 4 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$35 USD in 4 days
0.0 (0 reviews)
1.7
1.7

About the client

Flag of UNITED STATES
United States
5.0
199
Member since Sep 22, 2004

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.