COUNT

Поиск
Список
Период
Сортировка
От Lufkin, Brad
Тема COUNT
Дата
Msg-id 0E253E40DC78F4499CEDDE9223099F430706B831@xcgva040.northgrum.com
обсуждение исходный текст
Список pgsql-jdbc
I'm trying to determine the number of rows in a table with the following
statement:

    ResultSet resultSet = statement.executeQuery("SELECT COUNT(*) FROM
table");

This is apparently causing a sequential scan of the table (which has several
million rows). Is there a faster way of  determining the number of rows in a
table?

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: buki@gmx.net (Andreas Buer)
Дата:
Сообщение: Writing binary - UPDATE
Следующее
От: Barry Lind
Дата:
Сообщение: Re: Writing binary - UPDATE