Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
138 views
in Technique[技术] by (71.8m points)

Random took time SQL running

Hello i have a problem

$sql = 'SELECT u.*, s.*
        FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
        WHERE s.session_id = '" . $db->sql_escape($this->session_id) . "'
          AND u.user_id = s.session_user_id";
      $result = $db->sql_query($sql);
      $this->data = $db->sql_fetchrow($result);

some time took time is 0.0003 and some time is 7.123 !!!

why ? where is my wrong?

question from:https://stackoverflow.com/questions/65908165/random-took-time-sql-running

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...