Answer the question
In order to leave comments, you need to log in
Why does MySQL inside a Docker container abort (cancel) "long" requests?
An interesting feature was discovered (see subject). There is a container. yml like this:
version: "2.1"
services:
database:
container_name: mysql8_v001
image: mysql:latest
volumes:
# - "d:/docker-compose/mysql/cfg:/etc/mysql"
- "d:/docker-compose/mysql/data:/var/lib/mysql"
environment:
- "MYSQL_ROOT_PASSWORD=пароль"
- "MYSQL_ROOT_HOST=10.10.10.10"
ports:
- "3306:3306"
command: --bind-address="0.0.0.0" --skip_ssl="true" --wait_timeout="300" --mysqlx_read_timeout="300" --mysqlx_connect_timeout="300" --net_read_timeout="300"
SELECT DISTINCT
COUNT(scraper_tbhosts.id) AS NUM
FROM scraper_tbhosts
LEFT OUTER JOIN taggit_taggeditem
ON taggit_taggeditem.object_id = scraper_tbhosts.id
INNER JOIN taggit_tag
ON taggit_taggeditem.tag_id = taggit_tag.id
WHERE taggit_tag.name IN ('http', 'https')
AND taggit_taggeditem.content_type_id = 7
SELECT DISTINCT
COUNT(scraper_tbhosts.id) AS NUM
FROM scraper_tbhosts
LEFT OUTER JOIN taggit_taggeditem
ON taggit_taggeditem.object_id = scraper_tbhosts.id
INNER JOIN taggit_tag
ON taggit_taggeditem.tag_id = taggit_tag.id
WHERE taggit_tag.name NOT IN ('http', 'https')
AND taggit_taggeditem.content_type_id = 7
IN
or NOT IN
, which means that everything depends only on the execution time on my data set... Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question