there is a need for to find the same current week as mysql for other purposes
SELECT DATE_FORMAT(NOW(), "%v") - 1 AS currentWeek
this is written by another person. I"m thinking about implementing this requirement in code. What I"m worried about: speed, it doesn"t seem slow to execute pure function sql; it"s dependent on mysql.