@nsshunt/stsdatamanagement 1.18.174 → 1.18.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db-scripts/builddb.sql +30 -18
- package/package.json +1 -1
package/db-scripts/builddb.sql
CHANGED
|
@@ -58,8 +58,8 @@ CREATE TABLE stsresfhirlink (
|
|
|
58
58
|
COMPOSITE_HASH_EXACT BIGINT
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
CREATE INDEX idx_stsresfhirlink_type_id
|
|
62
|
+
ON stsresfhirlink (RES_ID, RES_TYPE);
|
|
63
63
|
|
|
64
64
|
CREATE INDEX idx_stsresfhirlink_identity
|
|
65
65
|
ON stsresfhirlink (SP_NAME, RES_TYPE);
|
|
@@ -94,8 +94,20 @@ CREATE TABLE stsresfhirstring (
|
|
|
94
94
|
COMPOSITE_HASH_EXACT BIGINT
|
|
95
95
|
);
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
CREATE INDEX idx_stsresfhirstring_search_prefix
|
|
98
|
+
ON stsresfhirstring (
|
|
99
|
+
RES_TYPE,
|
|
100
|
+
SP_NAME,
|
|
101
|
+
SP_PARAM_TYPE,
|
|
102
|
+
HASH_IDENTITY,
|
|
103
|
+
left(SP_VALUE_NORMALIZED, 3),
|
|
104
|
+
SP_VALUE_NORMALIZED text_pattern_ops,
|
|
105
|
+
RES_ID
|
|
106
|
+
)
|
|
107
|
+
WHERE SP_VALUE_NORMALIZED IS NOT NULL;
|
|
108
|
+
|
|
109
|
+
CREATE INDEX idx_stsresfhirstring_type_id
|
|
110
|
+
ON stsresfhirstring (RES_ID, RES_TYPE);
|
|
99
111
|
|
|
100
112
|
CREATE INDEX idx_stsresfhirstring_hash_identity
|
|
101
113
|
ON stsresfhirstring (HASH_IDENTITY);
|
|
@@ -137,8 +149,8 @@ CREATE TABLE stsresfhirtoken (
|
|
|
137
149
|
COMPOSITE_HASH_EXACT BIGINT
|
|
138
150
|
);
|
|
139
151
|
|
|
140
|
-
|
|
141
|
-
|
|
152
|
+
CREATE INDEX idx_stsresfhirtoken_type_id
|
|
153
|
+
ON stsresfhirtoken (RES_ID, RES_TYPE);
|
|
142
154
|
|
|
143
155
|
CREATE INDEX idx_stsresfhirtoken_hash_identity
|
|
144
156
|
ON stsresfhirtoken (HASH_IDENTITY);
|
|
@@ -183,8 +195,8 @@ CREATE TABLE stsresfhirquantity (
|
|
|
183
195
|
COMPOSITE_HASH_EXACT BIGINT
|
|
184
196
|
);
|
|
185
197
|
|
|
186
|
-
|
|
187
|
-
|
|
198
|
+
CREATE INDEX idx_stsresfhirquantity_type_id
|
|
199
|
+
ON stsresfhirquantity (RES_ID, RES_TYPE);
|
|
188
200
|
|
|
189
201
|
CREATE INDEX idx_stsresfhirquantity_hash_identity
|
|
190
202
|
ON stsresfhirquantity (HASH_IDENTITY);
|
|
@@ -225,8 +237,8 @@ CREATE TABLE stsresfhirnumber (
|
|
|
225
237
|
COMPOSITE_HASH_EXACT BIGINT
|
|
226
238
|
);
|
|
227
239
|
|
|
228
|
-
|
|
229
|
-
|
|
240
|
+
CREATE INDEX idx_stsresfhirnumber_type_id
|
|
241
|
+
ON stsresfhirnumber (RES_ID, RES_TYPE);
|
|
230
242
|
|
|
231
243
|
CREATE INDEX idx_stsresfhirnumber_hash_identity
|
|
232
244
|
ON stsresfhirnumber (HASH_IDENTITY);
|
|
@@ -256,8 +268,8 @@ CREATE TABLE stsresfhiruri (
|
|
|
256
268
|
COMPOSITE_HASH_EXACT BIGINT
|
|
257
269
|
);
|
|
258
270
|
|
|
259
|
-
|
|
260
|
-
|
|
271
|
+
CREATE INDEX idx_stsresfhiruri_type_id
|
|
272
|
+
ON stsresfhiruri (RES_ID, RES_TYPE);
|
|
261
273
|
|
|
262
274
|
CREATE INDEX idx_stsresfhiruri_hash_identity
|
|
263
275
|
ON stsresfhiruri (HASH_IDENTITY);
|
|
@@ -293,8 +305,8 @@ CREATE TABLE stsresfhirdate (
|
|
|
293
305
|
COMPOSITE_HASH_EXACT BIGINT
|
|
294
306
|
);
|
|
295
307
|
|
|
296
|
-
|
|
297
|
-
|
|
308
|
+
CREATE INDEX idx_stsresfhirdate_type_id
|
|
309
|
+
ON stsresfhirdate (RES_ID, RES_TYPE);
|
|
298
310
|
|
|
299
311
|
CREATE INDEX idx_stsresfhirdate_hash_identity
|
|
300
312
|
ON stsresfhirdate (HASH_IDENTITY);
|
|
@@ -328,8 +340,8 @@ CREATE TABLE stsresfhircoords (
|
|
|
328
340
|
COMPOSITE_HASH_EXACT BIGINT
|
|
329
341
|
);
|
|
330
342
|
|
|
331
|
-
|
|
332
|
-
|
|
343
|
+
CREATE INDEX idx_stsresfhircoords_type_id
|
|
344
|
+
ON stsresfhircoords (RES_ID, RES_TYPE);
|
|
333
345
|
|
|
334
346
|
CREATE INDEX idx_stsresfhircoords_hash_identity
|
|
335
347
|
ON stsresfhircoords (HASH_IDENTITY);
|
|
@@ -358,8 +370,8 @@ CREATE TABLE stsresfhircombo (
|
|
|
358
370
|
UNIQUE (RES_ID, SP_NAME, IDX_STRING)
|
|
359
371
|
);
|
|
360
372
|
|
|
361
|
-
|
|
362
|
-
|
|
373
|
+
CREATE INDEX idx_stsresfhircombo_type_id
|
|
374
|
+
ON stsresfhircombo (RES_ID, RES_TYPE);
|
|
363
375
|
|
|
364
376
|
CREATE INDEX idx_stsresfhircombo_hash_identity
|
|
365
377
|
ON stsresfhircombo (HASH_IDENTITY);
|