Playtime = (linecount/10)*60
PlayTimeFactor = FileSize/PlayTime
When a new file is added if play time field is zero then a trigger is will
automatically update it to predicted play time and approx line count.
PlayTime = FileSize/PlayTimeFactor
LineCount = (Playtime/60)*10
While File Adding section in stored procedure
collect PlCayTimeFactor from provider list
- Check Play time field is zero If Yes
- Use the above formula to calculate the Line count and PlayTime
- If PlayTime is valid
- Update it
- Calculate line count
No comments:
Post a Comment