-
Notifications
You must be signed in to change notification settings - Fork 0
/
failtest.js
304 lines (300 loc) · 12.3 KB
/
failtest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
var MyTable = require('./MyTable');
var db = require('./db');
var Sequelize = require('sequelize');
//require('./sync')().then(function() {
db.transaction().then(function(transaction) {
var uuidArray = [
'4d76f01d-56dd-45b2-81eb-1d8944f07cda',
'3bee4b56-3146-41d3-a17c-986f96439000',
'953a023a-7145-4965-99b4-15d621528029',
'593da2d9-ee1e-444e-9316-1bb8b2b14ddb',
'b4f2e945-f64b-4455-8f50-c4caa65b577c',
'1770c9dd-84ad-45a7-9372-eb6f122cf077',
'ae56f7fa-e45c-476c-8fa6-a6eccd9a7584',
'cb8708a1-96b9-440a-ab82-28a813cb2e52',
'a5849045-06a2-49b7-a3c3-f6d701ef9af2',
'6c7dbd24-0494-4864-a47c-f9fb83584c0e',
'cc1f2548-9a3c-43ce-994d-fef2bffd7639',
'd5aeb434-31a8-42e2-92d2-9dea1ddba007',
'a3c98471-71df-450f-883a-0386139a4f4a',
'f442ecae-c944-45e5-9050-c22883f3b673',
'08fef2d5-a5fa-4647-9f48-32f1dba0e895',
'9663e3f4-f949-4d2e-8e9f-42c2d2443e24',
'19d84ef4-48e1-47cb-bad8-8412c4aa6314',
'2d8fd2db-752f-41cc-8157-be0308cda326',
'fd111db6-395c-4473-bb75-ea66b9ed0036',
'30af67ce-95d8-46f1-bb7f-c288c569879e',
'9a059b01-8b7a-4b2d-a0be-6c28b5a2082e',
'6daffdd7-4917-4472-b1f7-0ca50a21e947',
'9fb03f61-da33-4c4f-b163-bd9f4d732e64',
'1037fdbb-8032-42cc-84dd-bc03e151d17f',
'1376a385-15f0-4eda-b84b-2f9932195e1e',
'd67bcb88-16dd-4b98-bbf7-96a690bed52d',
'a448508d-a9d2-4e12-b17c-0fa39f0a42d6',
'5ff53f91-4306-4608-a5cb-b37caafc6283',
'8aec97bc-d246-41e9-b64d-6fcf73316f42',
'11ac11f5-2d6b-4ef6-911e-b5069417bcf6',
'ea271a87-b0cc-402d-8377-f0946307cc79',
'd75e9b4a-a886-47a6-9cb8-83d30ca84cd6',
'f5b0df44-4803-4ccf-b520-38d4d7e10195',
'9847541e-8914-4188-9424-04d0490cc6c4',
'c73633f9-dc9a-488b-a2e3-a1ad67449fbe',
'45da5d3f-fda0-4cf0-8b6e-cfcdf9973923',
'a0a37743-74d6-4349-bbf5-08e0ec4c0628',
'fe3bf4ca-c57d-4bef-be6b-09ed15607bd8',
'4a11cb28-8ded-45e0-b0ac-6b78e22d9dab',
'e78afec7-bbe6-4f97-b37c-1d4ad2b1a5ec',
'd25d7f9e-8ba3-4168-a401-02e105d4269e',
'00b37829-9ae2-4e9b-af2d-f092a6fe8eee',
'ffab65e7-0803-47c7-b4bb-54b8098ac14c',
'657bb17d-30d6-4b80-80e7-a6e004c0f77a',
'20a0b2e1-71d9-4bfd-92b5-7f3e8a1365e6',
'21eeb6b8-a9ea-4d25-b08d-ed2c4f8715f5',
'30ff19b5-0477-4f51-8974-b501f9e0dcb9',
'ee5f25cd-522f-484e-bffe-9c1f222beb6b',
'a6a0dbd9-6b1c-425f-a84e-4620b0b834bf',
'50488c79-e42c-44a1-a976-016663fa5c04',
'7e99616b-538a-4228-879e-dd3432fb88ab',
'bab8f768-c8e9-4883-bc4b-3e66623b0210',
'bdc94bd3-04f0-4e4a-b163-88b76ff4c436',
'9fe9714f-e5c3-45d5-8224-5d4c845ba7cd',
'f0e5e26e-2ae7-4f0a-bba9-3c42ca23a697',
'b35124b9-9bc6-4d85-9d9b-9ab6ae2d3544',
'16ec4e5a-ca8e-45ac-ad11-588c8d32c621',
'f115c795-9174-4257-8ef4-94f07ffbff44',
'a83ccc63-c62e-4861-bc5d-f3d7b3546a99',
'897f3ca3-523f-4bb5-ad04-0537fccae562',
'1a68e471-dc98-4d9e-b52c-9d249d721e61',
'dbcffa47-9415-451d-b48e-28558f9a1e60',
'31413518-145c-4e00-944d-38dc3ff54151',
'6c96d174-6ff4-4517-bb2a-a12a56264cfe',
'3df18ae4-a517-4365-b3de-1395b6c2f8aa',
'd3cd4ee0-4725-4221-ab41-276b9ed62b3a',
'3254dd38-44b5-4b46-bc2c-80a33709231f',
'a7d07a67-e611-4921-95e4-e1609019fe44',
'd7d04889-9a26-41b9-9e46-7f95efaa9938',
'89ff24c8-d8d3-463c-bef3-521120e49405',
'50ae7163-30d3-49b4-9ea5-0a6270505e4f',
'e05245dc-5a0f-4c4e-aa5a-38397dfc2c64',
'69e14450-bd3d-4912-ac21-3938ae1e995d',
'ab34bd38-c047-4e87-aa53-6f7468a17b1a',
'dae251b7-5c62-4af7-9933-1f4357d5ad24',
'b9b75e31-c9c8-40f0-a049-a4d9ef35537c',
'99d4d658-2da1-42e5-887f-ff703f07dd8f',
'890cf6a8-7c00-41ed-aeb9-db5d18abc09c',
'ea6f185a-4920-43ab-ad31-3b27ab8d2294',
'152fc2ae-53a7-4ffc-9a2b-9893581825e1',
'ffc081ef-6d8a-4e65-9f7b-a67cf2736715',
'0e3c19ac-4067-4909-bb9f-393257952feb',
'6726a885-6360-44c8-840e-bace77583e21',
'f23f668f-d1fa-474f-8bd3-5fec8b13de62',
'2d7f0d22-afcc-4aeb-9f8f-d0535f9f8461',
'c616906c-3775-4794-a890-0b0facd80bb4',
'1c94e8fe-674d-4278-b11e-ab3542528a55',
'979a4059-2fdd-4c56-bbbf-71c71ed2877c',
'1d72ef9d-51f0-418d-8c29-57ef3c2c1cf1',
'0f413e11-ab36-49d4-bb5c-3096d8438c76',
'e7c7698b-39dc-4527-9667-4a82e6cef980',
'cfd2275c-4e2f-42b7-8e19-aad26298f847',
'c0ee9531-cf66-4c48-9561-1f901c90d7f2',
'6daebc8f-1ad0-4804-9a14-1bd6ce628fde',
'c0c72756-9f37-4a6a-a4f0-afd93359c49d',
'9a0525e6-61ba-48d7-8ce9-8998daf680d4',
'c6fee080-277e-4a56-8235-c7be7bd9e183',
'75363047-63db-474a-a276-b6bdff7bad85',
'9d32d8b5-3db4-473e-ac7d-f1e21e4ddca8',
'182458fa-5839-4c6b-a8a1-477e909a9879',
'0cb81ffa-3678-4e20-b815-ea76a22a021d',
'f1cceec4-e576-47e8-88c7-4b0df4bd5705',
'6e519dbf-10e9-4af4-b3cd-e369e4d1d2d0',
'3e1e801a-d4bd-47ee-9d11-643614e40d6b',
'105ec71d-04cd-4173-8eef-0870d58247a3',
'a380649f-8e18-41c2-a81e-97d651679d29',
'25c6dda3-80de-4637-916a-c7ba7c0edbaf',
'b16c4c84-f9f4-43c2-b187-26a955dfd733',
'2a92183f-e6a4-458c-a3f8-f6bb3ac67531',
'16569876-89f2-48fd-9a9e-3fe43a102834',
'80c5d032-dc52-4b23-b0e3-a73ee2bffaac',
'ca8be395-e399-4f05-b61c-7953808fda3e',
'0a346eab-27ed-4bae-b4f6-ae4041f7327f',
'605801fa-da8a-45d6-aa61-24418d08d388',
'bfac844e-2a8f-486c-b7b1-da91abaee045',
'3f788e82-2a5c-4973-a915-474cb40d6d6c',
'f872e101-8dd3-45e2-af15-eb901d4c00ff',
'3b78ce66-08c7-4fa0-9ae6-c63ed64c8ef1',
'699c2fc1-cd26-4da1-9bca-383545974a62',
'0021e8aa-6f82-45cd-a5c2-1c418cb20a6f',
'd6840a2e-49f8-4c5c-ba94-69644a1adbf2',
'5050b5e5-d91e-4a48-b500-6052233758d4',
'c779c9fe-ee09-4aca-b6d3-cc55c0460580',
'968f37dc-6f2c-4ace-9172-804798385085',
'bb556ac9-7098-4bc8-b252-4a657f6c2050',
'8f828506-db39-4071-9e50-e70f7f6356ba',
'a1349346-5ee6-450b-be7a-23ca4721f859',
'93dbca22-2bc4-4c58-8b19-c09c3736d919',
'ed5ef23d-19ca-40af-b385-1eec51941576',
'bf1432f2-cdbd-4d51-a398-3a78f7c7fd56',
'5e125b97-5733-4da7-9af5-9471fac2d8f1',
'd7befab4-f7db-4888-9cef-677a02717d37',
'05ddd1c7-01bf-4a20-a21b-c00456d73de0',
'ece119b6-d014-4086-a764-fae157287d49',
'5cd07605-7d4c-4598-b480-f3b8df900318',
'82951a23-ccdb-4921-8ef2-500446aa46ff',
'793748b2-7968-44e1-ba35-b117d3d351af',
'c677dab8-7f2f-4ac6-a7ee-56c07ef51638',
'8545d1d4-923e-4fab-bf4c-9fe8e2e7938f',
'552fbbf2-9158-4b08-8622-910ae0e8d487',
'6a5f355b-a33d-45bc-adad-13d908db34ee',
'd77e3175-f9b4-4233-ae91-ddb95a620b58',
'fd645351-5a57-4554-a2ec-5198ded52fd7',
'79957402-45d7-410e-b993-29f20174c352',
'd30a68bc-18f8-405e-a7d0-175df21be5aa',
'9367cf60-43c3-45e3-a8c0-e53f33e981ec',
'bc82506e-a822-42b6-82a4-caf71f872615',
'0113fe0c-47df-49b5-8c57-6aedab69d7d3',
'3d788791-ba80-4daf-9278-619a3f42f687',
'eba79345-c274-4931-961a-913dfd78c2b0',
'96a274ff-e037-43c7-bde2-13e4ca147ce0',
'4efa5c99-ec5d-41ac-a42e-9ce899947936',
'83896caf-8eea-4a24-9061-e4fa6b1ae19c',
'4405c4eb-1aa4-4958-bd55-db06e28ea903',
'290ff75b-85fc-4608-b48f-b16ec6cac03b',
'fedb9c02-7669-4063-a539-131cd0714ef8',
'e4d6b0db-ecab-4d6f-aad8-164af5383935',
'bf82f749-adb8-4ceb-81d0-cde230615364',
'fa57f12d-7745-46f9-b05f-f7e21f0c94e8',
'a7822552-8a15-4c6a-b3db-8bdc46acc9c8',
'0ed8cf3e-b796-4b02-9516-17b647de131c',
'4f94d02c-7b55-4fa0-b637-f5fb7819afef',
'ac3d08ab-ea99-49f2-9ec7-f0a4c68c179d',
'f50d92be-b210-40f4-a1c0-b141e83d4d05',
'db2cd263-f340-4dae-ad35-a1c532280659',
'd0661698-fdc1-470b-aaf6-489cd94cf811',
'd7b3f321-6eba-4a82-b618-d92f76ad2a3f',
'15611168-6b12-4b47-8158-74a98d8103f5',
'cb401a56-7170-40f2-9adb-1f0132e16d37',
'e6b04d5f-2a65-436a-8f79-f7bd12434331',
'18e7389e-e236-429d-9a5c-10095fd4547c',
'8c47aa06-0448-46ab-9a96-e91c647d7a22',
'96de6071-270e-4529-b417-08cbc4eee94d',
'd3c31323-2164-4428-8bc7-d89cf322b004',
'2b2ebe9e-5ab3-4c83-b5c9-cebd7442cdb7',
'807338ed-318d-4972-80fa-6c5dff57d951',
'c2542336-1bf1-4ad2-974c-b4ba3de55cb2',
'd7dc0150-30d9-432f-a96d-ccfa20c8d2ee',
'e85ad01d-f215-4c7a-8a93-ecd0fbef1ab8',
'124d72a6-c1c3-4445-978d-7a7e9ccb174e',
'e5ae74a5-9336-4ac0-8d59-30e86d21448a',
'99e04fbf-be0f-45b1-862f-a7e0f1ca8ab2',
'f6d3052e-61c2-4a2e-a679-6fd107f6fa05',
'6a654eda-295f-40d6-acec-23727a627161',
'615da93a-5614-45ec-9887-c85b5fef2535',
'0e790914-59e4-4225-bf44-d9543235df25',
'9b696734-bb90-4d80-ab24-c4842db3c989',
'70b8cc53-7b2d-4e4c-bd7f-8ab43ba0367f',
'52b8fb25-0514-434e-ac89-7f5d660915ff',
'6f00f868-ee06-4e65-9140-7122fcfe3698',
'7ff9ee59-ed94-4d70-bee9-be7c0a77a0c3',
'f5b6450c-89f9-47ca-a590-36ad30165236',
'c5a0e858-d461-4fea-bf9e-e00d86c3bb85',
'dbd7ddb1-0597-49c4-b6d6-6909f1e98efe',
'45d31bef-0b74-47e3-96db-e745fcf126fe',
'ebcfe841-e43f-4610-bf7d-0dab218dbf60',
'54f9ecba-dc0a-4806-9254-3e435182e8a9',
'd48e5e87-4256-4c59-a311-0919b86450a9',
'857d1485-7828-4ebf-acbb-a13eba0ee5f6',
'31b09055-b688-4ce3-8a96-d7ed1e135f09',
'f10bcf0a-bca4-429c-b2fb-3d0349f7a668',
'f626443c-4ac2-4b99-892e-e7ac96cb3bd4',
'c6ba9337-d925-4e15-82db-e26ebacf5989',
'dfaa1c23-70b2-49cc-9350-e040b3469e66',
'd5405ce5-3f4f-4639-8ff1-63621ad67ab6',
'c97885bf-1d6f-4df1-a20b-ca1f86cb6b1f',
'01dad942-4d93-437b-8009-ef47575e624f',
'3553e551-29ae-483d-9bd1-753011a5a551',
'5afaa738-07ac-4c97-be67-adf71e844d08',
'f29f9a7c-b96b-45ca-b57d-7a5281a761c7',
'a46ec6e1-c1bf-4a5e-add8-b753ec925aa1',
'b79076c8-f05d-43d4-9e50-e83df11b71fc',
'77f353c0-929b-4294-aa8b-3a5987525f63',
'4c588291-9f81-4ec0-bad4-4eeee9b4098d',
'facea158-62e2-44ff-b32e-7b6a458d97b8',
'4de88e2e-311c-410f-a4a3-dcc9abf996ee',
'2ab3faa2-c2bc-47c7-ae68-ca68985f03dc',
'5bd45fa7-40ff-4839-bbbc-a90595044997',
'7977b4dd-853f-4d21-8c45-332ef57db544',
'a428a50e-867a-4db0-bd5b-364efdb3c27b',
'8f726a0b-fa89-49e1-835c-31ac6a792d65',
'765be84f-76b1-4255-98c1-62e4f3d6f738',
'c28a3d81-5a8e-4167-b091-e87bc8d40104',
'a85af1d5-e1e2-46cc-a1d9-0d4fea6e200b',
'2df0a13b-550a-4742-99d4-b700552ee218',
'7f812741-b7f4-424d-9bd8-ad160439b672',
'020101d7-cf7e-4393-ad3b-651b63ed2cc9',
'8541ec58-8c24-4e2e-87be-6e62f197742f',
'fa0454d7-5ae4-471e-936f-ab9626466512',
'976b23ed-644a-436b-aa87-3febd7244ec4',
'a5d0548b-c364-4709-ad79-a0850039628a',
'8ee8ad8e-6dc4-4bfa-95b7-dda9d0e60162',
'03f6023b-0712-47f2-a69f-5be441a58d29',
'3ebadff3-1355-4036-b421-f73f46a55a1a',
'7af87cc8-1fc0-4d95-93dc-5e7f768c7544',
'8a710b1e-bc5f-44e3-a804-b56769aa5bef',
'89b3fdc9-5f88-4b68-bd04-79870dfe0b6f',
'4c7ec19b-9129-47be-9187-2c927a48d4ce',
'956eb79e-47fd-49d2-9af4-2f49ef9d9b41',
'59af0185-7980-4f5e-961c-94bbbec72d72',
'0806c4c7-ba15-4a95-8079-13a7412d3fae',
'606b81dc-c447-4d77-ab74-d692045a6f21',
'8a0c5e78-767f-466e-b9ee-22a06d8387cb',
'dc25f8cf-8f5a-4ee0-b7b2-6c1c8a17f3eb',
'226c0214-3987-4947-ba27-c5d56c01da55',
'86e58821-cec6-4394-8323-1d9eec024732',
'fd0a2389-08db-463c-afa4-d08055f7d480',
'e5615f89-5ce8-46ff-8f29-080420a65989',
'398911ee-bf1c-4caa-bf07-2ddaa8910af5',
'2aa0d39e-625c-4a3c-8b5e-d2d354336366',
'b95ff204-e767-4b7f-be03-29a48a23ccee',
'b0a5da01-d201-49c0-a4b4-dd943f068f6e',
'834d5845-8312-4b73-b4b3-ded4541115ac',
'29d96232-68a1-4a8a-8e8a-ee24b0b66262',
'8ce91d62-7e17-4384-9262-e62a17c928c5',
'3426589f-1efb-4898-8fbd-b362cfc84ef5',
'1285a227-69c9-4847-adee-05e99e3815de',
'59a557b2-ecbb-416b-9271-b9f92f62fae0',
'843e37dc-a8d4-46f0-86c0-137977ac0dbd',
'8de75408-8f5f-4cec-85e4-fbec35662bea',
'3290c488-5e46-4fcb-8ba9-b7010f205a8e',
'144a1c8e-7877-462a-81aa-c4cb029679b9',
'5c6414cb-53b3-46cb-9c7d-45df4a609870',
'b9c5f305-fc6f-4912-96b1-08dccb590183',
'8b248c57-74f3-414a-80db-b2b1a1c86b23',
'2d762a3a-6d27-4dd1-845a-399e70489247',
'c31e7db1-4c11-4924-86e9-f4e3ec397eea',
'c5457937-009b-48cc-9b7a-af4ec2f6c734',
'0636bf90-9952-4a6c-9573-deb25aa87f79',
'f8069ea2-9225-434b-8515-186f3ec46006',
'cf4d550b-c1d3-4f4c-a8fa-9de18ce5f44a',
'527d7c51-9d53-4339-97e2-c8097fb6b94e',
'db28ed6a-e4a2-41a7-aaca-499e9d9b4911',
'46f3b420-da8f-406a-8b45-09f80ea36dcc',
'd2d5debf-2668-45f4-bf07-b3a7577297ac',
'b917d5a7-7584-4417-9379-dd50031828b5',
'5f13daea-913b-4802-9a51-c19e13265cf9',
'ba2dc36c-94fb-4380-bf09-730ae7bec5c8',
'a418b22c-348e-405c-bae1-a70401511058',
'49ba79f3-a795-43a7-a0f2-543ab199f95e',
'd3b878ff-ad69-46ea-8388-b0c7bd50d336',
'33cd3525-465f-4c1e-829f-8deb05b073f1'
];
console.time('fetch');
MyTable.findAll({
where : { country : 'en', field : uuidArray }
}, { transaction : transaction }).then(function(result) {
console.timeEnd('fetch');
console.log(result.length);
}).then(function() {
return transaction.rollback();
});
});
//});