8f0ca623ff
inclusion in pgsql. I have included a README which should be enough to start using it, plus a BENCH file that describes some timings I have done. Please have a look at it, and if you think everything is OK, I would like it seen included in the contrib-section of pgsql. I don't think I will do any more work in this, but maybe it inspires somebody else to improve on it. Maarten Boekhold
98 lines
4.3 KiB
Plaintext
98 lines
4.3 KiB
Plaintext
The following data was generated by the 'timings.sh' script included
|
|
in this directory. It uses a very large table with music-related
|
|
articles as a source for the fti-table. The tables used are:
|
|
|
|
product : contains product information : 540.429 rows
|
|
artist_fti : fti table for product : 4.501.321 rows
|
|
clustered : same as above, only clustered : 4.501.321 rows
|
|
|
|
A sequential scan of the artist_fti table (and thus also the clustered table)
|
|
takes around 6:16 minutes....
|
|
|
|
Unfortunately I cannot probide anybody else with this test-date, since I
|
|
am not allowed to redistribute the data (it's a database being sold by
|
|
a couple of wholesale companies). Anyways, it's megabytes, so you probably
|
|
wouldn't want it in this distribution anyways.
|
|
|
|
I haven't tested this with less data.
|
|
|
|
The test-machine is a Pentium 133, 64 MB, Linux 2.0.32 with the database
|
|
on a 'QUANTUM BIGFOOT_CY4320A, 4134MB w/67kB Cache, CHS=8960/15/63'. This
|
|
is a very slow disk.
|
|
|
|
The postmaster was running with:
|
|
|
|
postmaster -i -b /usr/local/pgsql/bin/postgres -S 1024 -B 256 \
|
|
-o -o /usr/local/pgsql/debug-output -F -d 1
|
|
|
|
('trashing' means a 'select count(*) from artist_fti' to completely trash
|
|
any disk-caches and buffers....)
|
|
|
|
TESTING ON UNCLUSTERED FTI
|
|
trashing
|
|
1: ^lapton and ^ric : 0.050u 0.000s 5m37.484s 0.01%
|
|
2: ^lapton and ^ric : 0.050u 0.030s 5m32.447s 0.02%
|
|
3: ^lapton and ^ric : 0.030u 0.020s 5m28.822s 0.01%
|
|
trashing
|
|
1: ^lling and ^tones : 0.020u 0.030s 0m54.313s 0.09%
|
|
2: ^lling and ^tones : 0.040u 0.030s 0m5.057s 1.38%
|
|
3: ^lling and ^tones : 0.010u 0.050s 0m2.072s 2.89%
|
|
trashing
|
|
1: ^aughan and ^evie : 0.020u 0.030s 0m26.241s 0.19%
|
|
2: ^aughan and ^evie : 0.050u 0.010s 0m1.316s 4.55%
|
|
3: ^aughan and ^evie : 0.030u 0.020s 0m1.029s 4.85%
|
|
trashing
|
|
1: ^lling : 0.040u 0.010s 0m55.104s 0.09%
|
|
2: ^lling : 0.030u 0.030s 0m4.716s 1.27%
|
|
3: ^lling : 0.040u 0.010s 0m2.157s 2.31%
|
|
trashing
|
|
1: ^stev and ^ray and ^vaugh : 0.040u 0.000s 1m5.630s 0.06%
|
|
2: ^stev and ^ray and ^vaugh : 0.050u 0.020s 1m3.561s 0.11%
|
|
3: ^stev and ^ray and ^vaugh : 0.050u 0.010s 1m5.923s 0.09%
|
|
trashing
|
|
1: ^lling (no join) : 0.050u 0.020s 0m24.139s 0.28%
|
|
2: ^lling (no join) : 0.040u 0.040s 0m1.087s 7.35%
|
|
3: ^lling (no join) : 0.020u 0.030s 0m0.772s 6.48%
|
|
trashing
|
|
1: ^vaughan (no join) : 0.040u 0.030s 0m9.075s 0.77%
|
|
2: ^vaughan (no join) : 0.030u 0.010s 0m0.609s 6.56%
|
|
3: ^vaughan (no join) : 0.040u 0.010s 0m0.503s 9.94%
|
|
trashing
|
|
1: ^rol (no join) : 0.020u 0.030s 0m49.898s 0.10%
|
|
2: ^rol (no join) : 0.030u 0.020s 0m3.136s 1.59%
|
|
3: ^rol (no join) : 0.030u 0.020s 0m1.231s 4.06%
|
|
|
|
TESTING ON CLUSTERED FTI
|
|
trashing
|
|
1: ^lapton and ^ric : 0.020u 0.020s 2m17.120s 0.02%
|
|
2: ^lapton and ^ric : 0.030u 0.020s 2m11.767s 0.03%
|
|
3: ^lapton and ^ric : 0.040u 0.010s 2m8.128s 0.03%
|
|
trashing
|
|
1: ^lling and ^tones : 0.020u 0.030s 0m18.179s 0.27%
|
|
2: ^lling and ^tones : 0.030u 0.010s 0m1.897s 2.10%
|
|
3: ^lling and ^tones : 0.040u 0.010s 0m1.619s 3.08%
|
|
trashing
|
|
1: ^aughan and ^evie : 0.070u 0.010s 0m11.765s 0.67%
|
|
2: ^aughan and ^evie : 0.040u 0.010s 0m1.198s 4.17%
|
|
3: ^aughan and ^evie : 0.030u 0.020s 0m0.872s 5.73%
|
|
trashing
|
|
1: ^lling : 0.040u 0.000s 0m28.623s 0.13%
|
|
2: ^lling : 0.030u 0.010s 0m2.339s 1.70%
|
|
3: ^lling : 0.030u 0.010s 0m1.975s 2.02%
|
|
trashing
|
|
1: ^stev and ^ray and ^vaugh : 0.020u 0.010s 0m17.667s 0.16%
|
|
2: ^stev and ^ray and ^vaugh : 0.030u 0.010s 0m3.745s 1.06%
|
|
3: ^stev and ^ray and ^vaugh : 0.030u 0.020s 0m3.439s 1.45%
|
|
trashing
|
|
1: ^lling (no join) : 0.020u 0.040s 0m2.218s 2.70%
|
|
2: ^lling (no join) : 0.020u 0.020s 0m0.506s 7.90%
|
|
3: ^lling (no join) : 0.030u 0.030s 0m0.510s 11.76%
|
|
trashing
|
|
1: ^vaughan (no join) : 0.040u 0.050s 0m2.048s 4.39%
|
|
2: ^vaughan (no join) : 0.030u 0.020s 0m0.332s 15.04%
|
|
3: ^vaughan (no join) : 0.040u 0.010s 0m0.318s 15.72%
|
|
trashing
|
|
1: ^rol (no join) : 0.020u 0.030s 0m2.384s 2.09%
|
|
2: ^rol (no join) : 0.020u 0.030s 0m0.676s 7.39%
|
|
3: ^rol (no join) : 0.020u 0.030s 0m0.697s 7.17%
|