Authored by hugufei

三分钟加载一次向量load

... ... @@ -32,7 +32,7 @@ public class SortBrandVectorCacheBean {
@PostConstruct
void init() {
schedule.scheduleAtFixedRate(() -> sortBrandVector = loadAllSortBrandVectors(), 0, 5, TimeUnit.MINUTES);
schedule.scheduleAtFixedRate(() -> sortBrandVector = loadAllSortBrandVectors(), 0, 3, TimeUnit.MINUTES);
}
public List<Double> queryBrandSortVector(SortBrand sortBrand) {
... ...