🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #194961

Re: wolne select count(*)

#194961
From: Borneq
Date: Fri, 20 May 2016 20:37
10 lines
1479 bytes
W dniu 20.05.2016 o 21:31, Ronald Kuczek pisze:
> W dniu 20.05.2016 o 21:17, Borneq pisze:
>> Zapuściłem select count(*) na mySQL, aby zobaczyć jak długo potrwa
>> pobranie danych, ale samo select count(*) wciąż się wykonuje.
>> Dlaczego to tak długo trwa? rozumiem że np. distinct by trwało długo,
>> ale podanie ilości rekordów?
> Pokaż show processlist. Byś może Twoje zapytanie czeka na wykonanie
> innego zapytania zmieniającego tabelę, którą właśnie odpytujesz.

Jest na zdalnym serwerze, być może ktoś coś zapisuje do bazy
Technical Details
Message-ID: <nhnshv$51a$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <nhnns7$en$1@node2.news.atman.pl> <573f660d$0$22821$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.bazy-danych
Subject: Re: wolne select count(*)
Date: Fri, 20 May 2016 22:37:19 +0200
Organization: ATMAN - ATM S.A.
Lines: 11
Message-ID: <nhnshv$51a$1@node2.news.atman.pl>
References: <nhnns7$en$1@node2.news.atman.pl> <573f660d$0$22821$65785112@news.neostrada.pl>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1463776639 5162 91.239.205.105 (20 May 2016 20:37:19 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 20 May 2016 20:37:19 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
In-Reply-To: <573f660d$0$22821$65785112@news.neostrada.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit