Which one is faster: one way reading ="single pass reading"

Поиск
Список
Период
Сортировка
От Rosny
Тема Which one is faster: one way reading ="single pass reading"
Дата
Msg-id d194h3$1215$1@news.hub.org
обсуждение исходный текст
Список pgsql-performance
Hi,

Which one is faster: one way reading ="single pass reading"
Assumption :
a. Need to have 3 millions records
b. Need to have call 10  or 20 records repeatly
  (so for database it will be 10 times connection, each connection with one
record.
   or can be fancy 1 connection call return 10 sets of records)


1. Reading from Flat file
   Assume already give file name and just need to read the file
  (since it is flat file, each record represent a filename, with multiple
directory category)

2. Reading from XML file
   Assume schema already given just need to read the file
  (since it is xml file, each record represent an xml filename, with
multiple directory category)

3. Reading from Postgresql
   Assume primary key has been done with indexing
   just need to search the number and grap the text content
  (assume 3 millions of records, search the number, read the content file)

trying to recreate WebDBReader (from nutch) using C#
http://nutch.sourceforge.net/docs/api/net/nutch/db/WebDBReader.html

Thank you in advances,
Rosny





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

Предыдущее
От: Michael Tokarev
Дата:
Сообщение: Re: Postgres on RAID5
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: interesting benchmarks PG/Firebird Linux/Windows fsync/nofsync