slow access to mariadb

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

slow access to mariadb

Post by albourgz » Wed 23 Aug 2017 12:21

Hi,

I have a mariadb "big" table to process: 20.000.000 records,

CREATE TABLE `eidtmp20172` (
`CARDID` int(11) NOT NULL,
`SOFTREF` varchar(45) NOT NULL,
`ENTRYDATE` datetime NOT NULL,
PRIMARY KEY (`SOFTREF`,`ENTRYDATE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

(there are max 5 entryDate values for each softref, most softref have only one entrydate value.

TUniQuery:
SELECT cardId, softRef, entryDate
FROM EIDtmp20172
ORDER BY softRef,cardId,entryDate;
FetchAll is disabled and unidirectional is true. Fetchrows is 1000, but Open() takes several minutes. Why why why?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: slow access to mariadb

Post by ViktorV » Wed 23 Aug 2017 12:54

Most likely, the execution of your query on the server takes most of the time, but not the data transfer to the client. Please check the execution time of your query on the server using the standard means, for example, MySQL Workbench.

Post Reply