Efficient comparison of 100.000 vectors

后端 未结 10 2055
礼貌的吻别
礼貌的吻别 2021-01-31 21:20

I save 100.000 Vectors of in a database. Each vector has a dimension 60. (int vector[60])

Then I take one and want present vectors to the user in order of decreasing sim

10条回答
  •  广开言路
    2021-01-31 21:36

    In order to sort something, you need a sorting key for each item. So you will need to process each entry at least once to calculate the key.

    Is that what you think of?

    ======= Moved comment here:

    Given the description you cannot avoid looking at all entries to calculate your similarity factor. If you tell the database to use the similarity factor in the "order by" clause you can let it do all the hard work. Are you familiar with SQL?

提交回复
热议问题