CPU consumes of MySQL's API

Hi all, I have a process calls MySQL's APIs (like mysql_real_query). But I encountered that the process consumes CPU a lot as the same as the MySQL itself when there are rafts of updates (which cause lots of slow query).
I guess that it is MySQL's API that occupies the resource, however, I have no idea weather it is right or not...
Topic archived. No new replies allowed.