G
G
Grigory Vasilkov2016-09-15 21:51:34
PHP
Grigory Vasilkov, 2016-09-15 21:51:34

Why does a request from PHP take 10 seconds, but the same request from the console or navigator takes 0.2 seconds?

Why does a request from PHP take 10 seconds, but from the console or navigator the same request takes 0.2 seconds?
The query uses
LOWER(column) LIKE LOWER({$var})
Database - from Bitrix.
Nothing is connected on the page except this request.
Via console - 0.036 sec
Via PHP script - 10 seconds think something think think think...
memory_limit - 1536MB
OpenServer, PHP 5.5, Apache 2.4

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2016-09-15
@gzhegow

wangyu: access to the database goes by domain, not by address.
if I'm right, replace the domain with ip and check.

M
Maxim, 2016-09-15
@pudovMaxim

And what does nothing but this request mean? Does this script have a naked query to the database without binding in the form of Bitrix caps?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question