Skip to content

Commit 217696c

Browse files
Luke SikinaLuke-Sikina
Luke Sikina
authored andcommittedOct 2, 2024
[CHORE] Search tuning
1 parent d6d95dc commit 217696c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎dictionaryweights/src/main/java/edu/harvard/dbmi/avillach/dictionaryweights/WeightUpdateCreator.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ public String createUpdate(List<Weight> weights) {
3535
LEFT JOIN
3636
(
3737
SELECT
38-
concept_node.concept_node_id AS id, string_agg(value, ' ') AS values
38+
concept_node.concept_node_id AS id, left(string_agg(value, ' '), 20000) AS values
3939
FROM
4040
concept_node
4141
join concept_node_meta on concept_node.concept_node_id = concept_node_meta.concept_node_id
42-
WHERE
43-
LENGTH(concept_node_meta.value) < 1000
4442
GROUP BY
4543
concept_node.concept_node_id
4644
) AS concept_node_meta_str ON concept_node_meta_str.id = concept_node.concept_node_id

0 commit comments

Comments
 (0)
Please sign in to comment.