K
K
Kirill Gorelov2017-05-19 22:46:42
PHP
Kirill Gorelov, 2017-05-19 22:46:42

php average time calculation algorithm?

Guys, I have such a table. joxi.ru/Q2KGVxgU5kZN2j
It contains about 100 thousand entries in different categories. Which are parsed once a minute.
How can I determine the average time to add a record to the database for one category?
And all this in php? Are there any ready-made algorithms or scripts?
and What would I get as a result: the average time to add to the database is 5 minutes for category A.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-05-19
@Kirill-Gorelov

MySQL table?
Something like:

SELECT (MAX(date) - MIN(date)) / (60 * 24 * COUNT(*)) FROM ... GROUP BY date

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question