2007/5/16, ABHANG RANE <[EMAIL PROTECTED]>:
Hi, I have a array column which has 12 real values in it. Basically these values represent co-ordinates in 12 dimensions for a substance. My main need is to find substances similar to a particular compound. Now I can do by calculating differences with each array in the whole table. But the table has millions of rows. So I need some kinda higher dimensional index. I have read about the cube operation in postgre, can it be extended to 12 dimensions or something like that.
Don't know if this helps, but have a look at intarray: http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/intarray/ If you feel brave you could take this code and try to write some proximity- or similarity-checking functions in C to speedup the calculations. Also consider representing values by integers, since integer operations are much faster. -- Filip Rembiałkowski ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend
