Page MenuHomePhabricator

Reduce size of cached TaskSet
Open, Needs TriagePublic

Description

Background

While investigating T308312: CacheDecorator does not work when AND filtering is enabled I noticed that the amount of data we are caching could be reduced. (We already made some significant improvements in rEGRE71790fdda2a6: CacheDecorator: Use JSON serialization ).

Looking at my cached taskset

1{
2 "tasks": [
3 {
4 "taskType": {
5 "id": "copyedit",
6 "difficulty": "easy",
7 "extraData": {
8 "learnMoreLink": ""
9 },
10 "handlerId": "template-based",
11 "iconData": [],
12 "excludedTemplates": [],
13 "excludedCategories": [],
14 "templates": [
15 [
16 10,
17 "Kdy?"
18 ],
19 [
20 10,
21 "Kdo?"
22 ],
23 [
24 10,
25 "Pravopis"
26 ],
27 [
28 10,
29 "Sloh"
30 ],
31 [
32 10,
33 "Transkripce"
34 ],
35 [
36 10,
37 "Reklama"
38 ],
39 [
40 10,
41 "NPOV"
42 ],
43 [
44 10,
45 "Kým?"
46 ],
47 [
48 10,
49 "Jaký?"
50 ],
51 [
52 10,
53 "Který?"
54 ],
55 [
56 10,
57 "Srozumitelnost"
58 ]
59 ],
60 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
61 },
62 "title": [
63 0,
64 "Loukoťové_kolo"
65 ],
66 "topics": [],
67 "topicScores": [],
68 "token": "5sjdnlfgqcs0u9rqrhphv2m5eobas7mq",
69 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
70 },
71 {
72 "taskType": {
73 "id": "copyedit",
74 "difficulty": "easy",
75 "extraData": {
76 "learnMoreLink": ""
77 },
78 "handlerId": "template-based",
79 "iconData": [],
80 "excludedTemplates": [],
81 "excludedCategories": [],
82 "templates": [
83 [
84 10,
85 "Kdy?"
86 ],
87 [
88 10,
89 "Kdo?"
90 ],
91 [
92 10,
93 "Pravopis"
94 ],
95 [
96 10,
97 "Sloh"
98 ],
99 [
100 10,
101 "Transkripce"
102 ],
103 [
104 10,
105 "Reklama"
106 ],
107 [
108 10,
109 "NPOV"
110 ],
111 [
112 10,
113 "Kým?"
114 ],
115 [
116 10,
117 "Jaký?"
118 ],
119 [
120 10,
121 "Který?"
122 ],
123 [
124 10,
125 "Srozumitelnost"
126 ]
127 ],
128 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
129 },
130 "title": [
131 0,
132 "ČD_Cargo"
133 ],
134 "topics": [],
135 "topicScores": [],
136 "token": "6g9umjqt3bau86r01pen1qincuhrgfhe",
137 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
138 },
139 {
140 "taskType": {
141 "id": "copyedit",
142 "difficulty": "easy",
143 "extraData": {
144 "learnMoreLink": ""
145 },
146 "handlerId": "template-based",
147 "iconData": [],
148 "excludedTemplates": [],
149 "excludedCategories": [],
150 "templates": [
151 [
152 10,
153 "Kdy?"
154 ],
155 [
156 10,
157 "Kdo?"
158 ],
159 [
160 10,
161 "Pravopis"
162 ],
163 [
164 10,
165 "Sloh"
166 ],
167 [
168 10,
169 "Transkripce"
170 ],
171 [
172 10,
173 "Reklama"
174 ],
175 [
176 10,
177 "NPOV"
178 ],
179 [
180 10,
181 "Kým?"
182 ],
183 [
184 10,
185 "Jaký?"
186 ],
187 [
188 10,
189 "Který?"
190 ],
191 [
192 10,
193 "Srozumitelnost"
194 ]
195 ],
196 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
197 },
198 "title": [
199 0,
200 "D21_–_Janečkova_metoda"
201 ],
202 "topics": [],
203 "topicScores": [],
204 "token": "t80a5dqelklsu15ephpp48iihvnsmfb1",
205 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
206 },
207 {
208 "taskType": {
209 "id": "copyedit",
210 "difficulty": "easy",
211 "extraData": {
212 "learnMoreLink": ""
213 },
214 "handlerId": "template-based",
215 "iconData": [],
216 "excludedTemplates": [],
217 "excludedCategories": [],
218 "templates": [
219 [
220 10,
221 "Kdy?"
222 ],
223 [
224 10,
225 "Kdo?"
226 ],
227 [
228 10,
229 "Pravopis"
230 ],
231 [
232 10,
233 "Sloh"
234 ],
235 [
236 10,
237 "Transkripce"
238 ],
239 [
240 10,
241 "Reklama"
242 ],
243 [
244 10,
245 "NPOV"
246 ],
247 [
248 10,
249 "Kým?"
250 ],
251 [
252 10,
253 "Jaký?"
254 ],
255 [
256 10,
257 "Který?"
258 ],
259 [
260 10,
261 "Srozumitelnost"
262 ]
263 ],
264 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
265 },
266 "title": [
267 0,
268 "Tokijský_proces"
269 ],
270 "topics": [],
271 "topicScores": [],
272 "token": "dkcsqdt2kn9eapppl8p3eqj1gg3788di",
273 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
274 },
275 {
276 "taskType": {
277 "id": "copyedit",
278 "difficulty": "easy",
279 "extraData": {
280 "learnMoreLink": ""
281 },
282 "handlerId": "template-based",
283 "iconData": [],
284 "excludedTemplates": [],
285 "excludedCategories": [],
286 "templates": [
287 [
288 10,
289 "Kdy?"
290 ],
291 [
292 10,
293 "Kdo?"
294 ],
295 [
296 10,
297 "Pravopis"
298 ],
299 [
300 10,
301 "Sloh"
302 ],
303 [
304 10,
305 "Transkripce"
306 ],
307 [
308 10,
309 "Reklama"
310 ],
311 [
312 10,
313 "NPOV"
314 ],
315 [
316 10,
317 "Kým?"
318 ],
319 [
320 10,
321 "Jaký?"
322 ],
323 [
324 10,
325 "Který?"
326 ],
327 [
328 10,
329 "Srozumitelnost"
330 ]
331 ],
332 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
333 },
334 "title": [
335 0,
336 "Nekonečno"
337 ],
338 "topics": [],
339 "topicScores": [],
340 "token": "08ekdr1q1fvfefpemo4l33067p2b82fe",
341 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
342 },
343 {
344 "taskType": {
345 "id": "copyedit",
346 "difficulty": "easy",
347 "extraData": {
348 "learnMoreLink": ""
349 },
350 "handlerId": "template-based",
351 "iconData": [],
352 "excludedTemplates": [],
353 "excludedCategories": [],
354 "templates": [
355 [
356 10,
357 "Kdy?"
358 ],
359 [
360 10,
361 "Kdo?"
362 ],
363 [
364 10,
365 "Pravopis"
366 ],
367 [
368 10,
369 "Sloh"
370 ],
371 [
372 10,
373 "Transkripce"
374 ],
375 [
376 10,
377 "Reklama"
378 ],
379 [
380 10,
381 "NPOV"
382 ],
383 [
384 10,
385 "Kým?"
386 ],
387 [
388 10,
389 "Jaký?"
390 ],
391 [
392 10,
393 "Který?"
394 ],
395 [
396 10,
397 "Srozumitelnost"
398 ]
399 ],
400 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
401 },
402 "title": [
403 0,
404 "XY_gonadální_dysgeneze"
405 ],
406 "topics": [],
407 "topicScores": [],
408 "token": "mlngpcuqrcdts8kftsmsj9dtjbtm3mj7",
409 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
410 },
411 {
412 "taskType": {
413 "id": "copyedit",
414 "difficulty": "easy",
415 "extraData": {
416 "learnMoreLink": ""
417 },
418 "handlerId": "template-based",
419 "iconData": [],
420 "excludedTemplates": [],
421 "excludedCategories": [],
422 "templates": [
423 [
424 10,
425 "Kdy?"
426 ],
427 [
428 10,
429 "Kdo?"
430 ],
431 [
432 10,
433 "Pravopis"
434 ],
435 [
436 10,
437 "Sloh"
438 ],
439 [
440 10,
441 "Transkripce"
442 ],
443 [
444 10,
445 "Reklama"
446 ],
447 [
448 10,
449 "NPOV"
450 ],
451 [
452 10,
453 "Kým?"
454 ],
455 [
456 10,
457 "Jaký?"
458 ],
459 [
460 10,
461 "Který?"
462 ],
463 [
464 10,
465 "Srozumitelnost"
466 ]
467 ],
468 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
469 },
470 "title": [
471 0,
472 "Antares"
473 ],
474 "topics": [],
475 "topicScores": [],
476 "token": "mqujnjij26p5thnabf8hpdn6qq374r6g",
477 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
478 },
479 {
480 "taskType": {
481 "id": "copyedit",
482 "difficulty": "easy",
483 "extraData": {
484 "learnMoreLink": ""
485 },
486 "handlerId": "template-based",
487 "iconData": [],
488 "excludedTemplates": [],
489 "excludedCategories": [],
490 "templates": [
491 [
492 10,
493 "Kdy?"
494 ],
495 [
496 10,
497 "Kdo?"
498 ],
499 [
500 10,
501 "Pravopis"
502 ],
503 [
504 10,
505 "Sloh"
506 ],
507 [
508 10,
509 "Transkripce"
510 ],
511 [
512 10,
513 "Reklama"
514 ],
515 [
516 10,
517 "NPOV"
518 ],
519 [
520 10,
521 "Kým?"
522 ],
523 [
524 10,
525 "Jaký?"
526 ],
527 [
528 10,
529 "Který?"
530 ],
531 [
532 10,
533 "Srozumitelnost"
534 ]
535 ],
536 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
537 },
538 "title": [
539 0,
540 "Bludný_balvan_(cena)"
541 ],
542 "topics": [],
543 "topicScores": [],
544 "token": "ju3ce1lcg62rkkubs0tbqkq7koqgg6im",
545 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
546 },
547 {
548 "taskType": {
549 "id": "copyedit",
550 "difficulty": "easy",
551 "extraData": {
552 "learnMoreLink": ""
553 },
554 "handlerId": "template-based",
555 "iconData": [],
556 "excludedTemplates": [],
557 "excludedCategories": [],
558 "templates": [
559 [
560 10,
561 "Kdy?"
562 ],
563 [
564 10,
565 "Kdo?"
566 ],
567 [
568 10,
569 "Pravopis"
570 ],
571 [
572 10,
573 "Sloh"
574 ],
575 [
576 10,
577 "Transkripce"
578 ],
579 [
580 10,
581 "Reklama"
582 ],
583 [
584 10,
585 "NPOV"
586 ],
587 [
588 10,
589 "Kým?"
590 ],
591 [
592 10,
593 "Jaký?"
594 ],
595 [
596 10,
597 "Který?"
598 ],
599 [
600 10,
601 "Srozumitelnost"
602 ]
603 ],
604 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
605 },
606 "title": [
607 0,
608 "Zonky"
609 ],
610 "topics": [],
611 "topicScores": [],
612 "token": "didqpeipa0belqua5tk1i27drnafq0jh",
613 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
614 },
615 {
616 "taskType": {
617 "id": "copyedit",
618 "difficulty": "easy",
619 "extraData": {
620 "learnMoreLink": ""
621 },
622 "handlerId": "template-based",
623 "iconData": [],
624 "excludedTemplates": [],
625 "excludedCategories": [],
626 "templates": [
627 [
628 10,
629 "Kdy?"
630 ],
631 [
632 10,
633 "Kdo?"
634 ],
635 [
636 10,
637 "Pravopis"
638 ],
639 [
640 10,
641 "Sloh"
642 ],
643 [
644 10,
645 "Transkripce"
646 ],
647 [
648 10,
649 "Reklama"
650 ],
651 [
652 10,
653 "NPOV"
654 ],
655 [
656 10,
657 "Kým?"
658 ],
659 [
660 10,
661 "Jaký?"
662 ],
663 [
664 10,
665 "Který?"
666 ],
667 [
668 10,
669 "Srozumitelnost"
670 ]
671 ],
672 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
673 },
674 "title": [
675 0,
676 "Žabka_(obchod)"
677 ],
678 "topics": [],
679 "topicScores": [],
680 "token": "c0u36ht244ivrkik1b9b95366j9s43jt",
681 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
682 },
683 {
684 "taskType": {
685 "id": "copyedit",
686 "difficulty": "easy",
687 "extraData": {
688 "learnMoreLink": ""
689 },
690 "handlerId": "template-based",
691 "iconData": [],
692 "excludedTemplates": [],
693 "excludedCategories": [],
694 "templates": [
695 [
696 10,
697 "Kdy?"
698 ],
699 [
700 10,
701 "Kdo?"
702 ],
703 [
704 10,
705 "Pravopis"
706 ],
707 [
708 10,
709 "Sloh"
710 ],
711 [
712 10,
713 "Transkripce"
714 ],
715 [
716 10,
717 "Reklama"
718 ],
719 [
720 10,
721 "NPOV"
722 ],
723 [
724 10,
725 "Kým?"
726 ],
727 [
728 10,
729 "Jaký?"
730 ],
731 [
732 10,
733 "Který?"
734 ],
735 [
736 10,
737 "Srozumitelnost"
738 ]
739 ],
740 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
741 },
742 "title": [
743 0,
744 "Herbicid"
745 ],
746 "topics": [],
747 "topicScores": [],
748 "token": "08eeufe63v1v6609ve1kc93mferqgs34",
749 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
750 },
751 {
752 "taskType": {
753 "id": "copyedit",
754 "difficulty": "easy",
755 "extraData": {
756 "learnMoreLink": ""
757 },
758 "handlerId": "template-based",
759 "iconData": [],
760 "excludedTemplates": [],
761 "excludedCategories": [],
762 "templates": [
763 [
764 10,
765 "Kdy?"
766 ],
767 [
768 10,
769 "Kdo?"
770 ],
771 [
772 10,
773 "Pravopis"
774 ],
775 [
776 10,
777 "Sloh"
778 ],
779 [
780 10,
781 "Transkripce"
782 ],
783 [
784 10,
785 "Reklama"
786 ],
787 [
788 10,
789 "NPOV"
790 ],
791 [
792 10,
793 "Kým?"
794 ],
795 [
796 10,
797 "Jaký?"
798 ],
799 [
800 10,
801 "Který?"
802 ],
803 [
804 10,
805 "Srozumitelnost"
806 ]
807 ],
808 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
809 },
810 "title": [
811 0,
812 "Mercedes-AMG"
813 ],
814 "topics": [],
815 "topicScores": [],
816 "token": "udrubd5nsq49ts0hvm3hm2rn6c376e2m",
817 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
818 },
819 {
820 "taskType": {
821 "id": "copyedit",
822 "difficulty": "easy",
823 "extraData": {
824 "learnMoreLink": ""
825 },
826 "handlerId": "template-based",
827 "iconData": [],
828 "excludedTemplates": [],
829 "excludedCategories": [],
830 "templates": [
831 [
832 10,
833 "Kdy?"
834 ],
835 [
836 10,
837 "Kdo?"
838 ],
839 [
840 10,
841 "Pravopis"
842 ],
843 [
844 10,
845 "Sloh"
846 ],
847 [
848 10,
849 "Transkripce"
850 ],
851 [
852 10,
853 "Reklama"
854 ],
855 [
856 10,
857 "NPOV"
858 ],
859 [
860 10,
861 "Kým?"
862 ],
863 [
864 10,
865 "Jaký?"
866 ],
867 [
868 10,
869 "Který?"
870 ],
871 [
872 10,
873 "Srozumitelnost"
874 ]
875 ],
876 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
877 },
878 "title": [
879 0,
880 "Polština"
881 ],
882 "topics": [],
883 "topicScores": [],
884 "token": "l3cpk9jk553uo2elh4lh4q97gl5pjo9r",
885 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
886 },
887 {
888 "taskType": {
889 "id": "copyedit",
890 "difficulty": "easy",
891 "extraData": {
892 "learnMoreLink": ""
893 },
894 "handlerId": "template-based",
895 "iconData": [],
896 "excludedTemplates": [],
897 "excludedCategories": [],
898 "templates": [
899 [
900 10,
901 "Kdy?"
902 ],
903 [
904 10,
905 "Kdo?"
906 ],
907 [
908 10,
909 "Pravopis"
910 ],
911 [
912 10,
913 "Sloh"
914 ],
915 [
916 10,
917 "Transkripce"
918 ],
919 [
920 10,
921 "Reklama"
922 ],
923 [
924 10,
925 "NPOV"
926 ],
927 [
928 10,
929 "Kým?"
930 ],
931 [
932 10,
933 "Jaký?"
934 ],
935 [
936 10,
937 "Který?"
938 ],
939 [
940 10,
941 "Srozumitelnost"
942 ]
943 ],
944 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
945 },
946 "title": [
947 0,
948 "Září"
949 ],
950 "topics": [],
951 "topicScores": [],
952 "token": "2sdovl9cg7777g696t0djcv2kn5er4h5",
953 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
954 },
955 {
956 "taskType": {
957 "id": "copyedit",
958 "difficulty": "easy",
959 "extraData": {
960 "learnMoreLink": ""
961 },
962 "handlerId": "template-based",
963 "iconData": [],
964 "excludedTemplates": [],
965 "excludedCategories": [],
966 "templates": [
967 [
968 10,
969 "Kdy?"
970 ],
971 [
972 10,
973 "Kdo?"
974 ],
975 [
976 10,
977 "Pravopis"
978 ],
979 [
980 10,
981 "Sloh"
982 ],
983 [
984 10,
985 "Transkripce"
986 ],
987 [
988 10,
989 "Reklama"
990 ],
991 [
992 10,
993 "NPOV"
994 ],
995 [
996 10,
997 "Kým?"
998 ],
999 [
1000 10,
1001 "Jaký?"
1002 ],
1003 [
1004 10,
1005 "Který?"
1006 ],
1007 [
1008 10,
1009 "Srozumitelnost"
1010 ]
1011 ],
1012 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
1013 },
1014 "title": [
1015 0,
1016 "Warez"
1017 ],
1018 "topics": [],
1019 "topicScores": [],
1020 "token": "ngt1i822lkg6r1lhe86hqga0cb3tr6ba",
1021 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
1022 },
1023 {
1024 "taskType": {
1025 "id": "copyedit",
1026 "difficulty": "easy",
1027 "extraData": {
1028 "learnMoreLink": ""
1029 },
1030 "handlerId": "template-based",
1031 "iconData": [],
1032 "excludedTemplates": [],
1033 "excludedCategories": [],
1034 "templates": [
1035 [
1036 10,
1037 "Kdy?"
1038 ],
1039 [
1040 10,
1041 "Kdo?"
1042 ],
1043 [
1044 10,
1045 "Pravopis"
1046 ],
1047 [
1048 10,
1049 "Sloh"
1050 ],
1051 [
1052 10,
1053 "Transkripce"
1054 ],
1055 [
1056 10,
1057 "Reklama"
1058 ],
1059 [
1060 10,
1061 "NPOV"
1062 ],
1063 [
1064 10,
1065 "Kým?"
1066 ],
1067 [
1068 10,
1069 "Jaký?"
1070 ],
1071 [
1072 10,
1073 "Který?"
1074 ],
1075 [
1076 10,
1077 "Srozumitelnost"
1078 ]
1079 ],
1080 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
1081 },
1082 "title": [
1083 0,
1084 "Uršula_Kluková"
1085 ],
1086 "topics": [],
1087 "topicScores": [],
1088 "token": "3ir9bofd72veqnfja8joo17tfh1kna00",
1089 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
1090 },
1091 {
1092 "taskType": {
1093 "id": "copyedit",
1094 "difficulty": "easy",
1095 "extraData": {
1096 "learnMoreLink": ""
1097 },
1098 "handlerId": "template-based",
1099 "iconData": [],
1100 "excludedTemplates": [],
1101 "excludedCategories": [],
1102 "templates": [
1103 [
1104 10,
1105 "Kdy?"
1106 ],
1107 [
1108 10,
1109 "Kdo?"
1110 ],
1111 [
1112 10,
1113 "Pravopis"
1114 ],
1115 [
1116 10,
1117 "Sloh"
1118 ],
1119 [
1120 10,
1121 "Transkripce"
1122 ],
1123 [
1124 10,
1125 "Reklama"
1126 ],
1127 [
1128 10,
1129 "NPOV"
1130 ],
1131 [
1132 10,
1133 "Kým?"
1134 ],
1135 [
1136 10,
1137 "Jaký?"
1138 ],
1139 [
1140 10,
1141 "Který?"
1142 ],
1143 [
1144 10,
1145 "Srozumitelnost"
1146 ]
1147 ],
1148 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
1149 },
1150 "title": [
1151 0,
1152 "Ricin"
1153 ],
1154 "topics": [],
1155 "topicScores": [],
1156 "token": "f18n35mrfdhqvg5houu3lp1u4erduj8u",
1157 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
1158 },
1159 {
1160 "taskType": {
1161 "id": "copyedit",
1162 "difficulty": "easy",
1163 "extraData": {
1164 "learnMoreLink": ""
1165 },
1166 "handlerId": "template-based",
1167 "iconData": [],
1168 "excludedTemplates": [],
1169 "excludedCategories": [],
1170 "templates": [
1171 [
1172 10,
1173 "Kdy?"
1174 ],
1175 [
1176 10,
1177 "Kdo?"
1178 ],
1179 [
1180 10,
1181 "Pravopis"
1182 ],
1183 [
1184 10,
1185 "Sloh"
1186 ],
1187 [
1188 10,
1189 "Transkripce"
1190 ],
1191 [
1192 10,
1193 "Reklama"
1194 ],
1195 [
1196 10,
1197 "NPOV"
1198 ],
1199 [
1200 10,
1201 "Kým?"
1202 ],
1203 [
1204 10,
1205 "Jaký?"
1206 ],
1207 [
1208 10,
1209 "Který?"
1210 ],
1211 [
1212 10,
1213 "Srozumitelnost"
1214 ]
1215 ],
1216 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
1217 },
1218 "title": [
1219 0,
1220 "Dolani"
1221 ],
1222 "topics": [],
1223 "topicScores": [],
1224 "token": "lnfakabnilb7rkb24ijtf3ock0fdms1n",
1225 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
1226 },
1227 {
1228 "taskType": {
1229 "id": "copyedit",
1230 "difficulty": "easy",
1231 "extraData": {
1232 "learnMoreLink": ""
1233 },
1234 "handlerId": "template-based",
1235 "iconData": [],
1236 "excludedTemplates": [],
1237 "excludedCategories": [],
1238 "templates": [
1239 [
1240 10,
1241 "Kdy?"
1242 ],
1243 [
1244 10,
1245 "Kdo?"
1246 ],
1247 [
1248 10,
1249 "Pravopis"
1250 ],
1251 [
1252 10,
1253 "Sloh"
1254 ],
1255 [
1256 10,
1257 "Transkripce"
1258 ],
1259 [
1260 10,
1261 "Reklama"
1262 ],
1263 [
1264 10,
1265 "NPOV"
1266 ],
1267 [
1268 10,
1269 "Kým?"
1270 ],
1271 [
1272 10,
1273 "Jaký?"
1274 ],
1275 [
1276 10,
1277 "Který?"
1278 ],
1279 [
1280 10,
1281 "Srozumitelnost"
1282 ]
1283 ],
1284 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
1285 },
1286 "title": [
1287 0,
1288 "Trestný_čin"
1289 ],
1290 "topics": [],
1291 "topicScores": [],
1292 "token": "8nb69ha50tq0t6ee9di4ridht492gh8a",
1293 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
1294 },
1295 {
1296 "taskType": {
1297 "id": "copyedit",
1298 "difficulty": "easy",
1299 "extraData": {
1300 "learnMoreLink": ""
1301 },
1302 "handlerId": "template-based",
1303 "iconData": [],
1304 "excludedTemplates": [],
1305 "excludedCategories": [],
1306 "templates": [
1307 [
1308 10,
1309 "Kdy?"
1310 ],
1311 [
1312 10,
1313 "Kdo?"
1314 ],
1315 [
1316 10,
1317 "Pravopis"
1318 ],
1319 [
1320 10,
1321 "Sloh"
1322 ],
1323 [
1324 10,
1325 "Transkripce"
1326 ],
1327 [
1328 10,
1329 "Reklama"
1330 ],
1331 [
1332 10,
1333 "NPOV"
1334 ],
1335 [
1336 10,
1337 "Kým?"
1338 ],
1339 [
1340 10,
1341 "Jaký?"
1342 ],
1343 [
1344 10,
1345 "Který?"
1346 ],
1347 [
1348 10,
1349 "Srozumitelnost"
1350 ]
1351 ],
1352 "_type_": "GrowthExperiments\\NewcomerTasks\\TaskType\\TemplateBasedTaskType"
1353 },
1354 "title": [
1355 0,
1356 "Samoobsluha"
1357 ],
1358 "topics": [],
1359 "topicScores": [],
1360 "token": "ehjnp9lq8o8q0subo3t0u46ttgevjfc5",
1361 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
1362 }
1363 ],
1364 "invalidTasks": [],
1365 "totalCount": 3852,
1366 "offset": 0,
1367 "filters": {
1368 "task": [
1369 "copyedit"
1370 ],
1371 "topic": [],
1372 "topicMode": "AND",
1373 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\TaskSetFilters"
1374 },
1375 "qualityGateConfig": [],
1376 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\TaskSet"
1377}
, most of the rows are taken up by the TaskType entry, which I think could be reduced to a key/value pair like "taskType": "copyedit" (the ID of the task type). Then the cached data would look more like
1{
2 "tasks": [
3 {
4 "title": [
5 0,
6 "Loukoťové_kolo"
7 ],
8 "topics": [],
9 "topicScores": [],
10 "token": "5sjdnlfgqcs0u9rqrhphv2m5eobas7mq",
11 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
12 },
13 {
14 "title": [
15 0,
16 "ČD_Cargo"
17 ],
18 "topics": [],
19 "topicScores": [],
20 "token": "6g9umjqt3bau86r01pen1qincuhrgfhe",
21 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
22 },
23 {
24 "title": [
25 0,
26 "D21_–_Janečkova_metoda"
27 ],
28 "topics": [],
29 "topicScores": [],
30 "token": "t80a5dqelklsu15ephpp48iihvnsmfb1",
31 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
32 },
33 {
34 "title": [
35 0,
36 "Tokijský_proces"
37 ],
38 "topics": [],
39 "topicScores": [],
40 "token": "dkcsqdt2kn9eapppl8p3eqj1gg3788di",
41 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
42 },
43 {
44 "title": [
45 0,
46 "Nekonečno"
47 ],
48 "topics": [],
49 "topicScores": [],
50 "token": "08ekdr1q1fvfefpemo4l33067p2b82fe",
51 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
52 },
53 {
54 "title": [
55 0,
56 "XY_gonadální_dysgeneze"
57 ],
58 "topics": [],
59 "topicScores": [],
60 "token": "mlngpcuqrcdts8kftsmsj9dtjbtm3mj7",
61 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
62 },
63 {
64 "title": [
65 0,
66 "Antares"
67 ],
68 "topics": [],
69 "topicScores": [],
70 "token": "mqujnjij26p5thnabf8hpdn6qq374r6g",
71 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
72 },
73 {
74 "title": [
75 0,
76 "Bludný_balvan_(cena)"
77 ],
78 "topics": [],
79 "topicScores": [],
80 "token": "ju3ce1lcg62rkkubs0tbqkq7koqgg6im",
81 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
82 },
83 {
84 "title": [
85 0,
86 "Zonky"
87 ],
88 "topics": [],
89 "topicScores": [],
90 "token": "didqpeipa0belqua5tk1i27drnafq0jh",
91 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
92 },
93 {
94 "title": [
95 0,
96 "Žabka_(obchod)"
97 ],
98 "topics": [],
99 "topicScores": [],
100 "token": "c0u36ht244ivrkik1b9b95366j9s43jt",
101 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
102 },
103 {
104 "title": [
105 0,
106 "Herbicid"
107 ],
108 "topics": [],
109 "topicScores": [],
110 "token": "08eeufe63v1v6609ve1kc93mferqgs34",
111 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
112 },
113 {
114 "title": [
115 0,
116 "Mercedes-AMG"
117 ],
118 "topics": [],
119 "topicScores": [],
120 "token": "udrubd5nsq49ts0hvm3hm2rn6c376e2m",
121 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
122 },
123 {
124 "title": [
125 0,
126 "Polština"
127 ],
128 "topics": [],
129 "topicScores": [],
130 "token": "l3cpk9jk553uo2elh4lh4q97gl5pjo9r",
131 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
132 },
133 {
134 "title": [
135 0,
136 "Září"
137 ],
138 "topics": [],
139 "topicScores": [],
140 "token": "2sdovl9cg7777g696t0djcv2kn5er4h5",
141 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
142 },
143 {
144 "title": [
145 0,
146 "Warez"
147 ],
148 "topics": [],
149 "topicScores": [],
150 "token": "ngt1i822lkg6r1lhe86hqga0cb3tr6ba",
151 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
152 },
153 {
154 "title": [
155 0,
156 "Uršula_Kluková"
157 ],
158 "topics": [],
159 "topicScores": [],
160 "token": "3ir9bofd72veqnfja8joo17tfh1kna00",
161 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
162 },
163 {
164 "title": [
165 0,
166 "Ricin"
167 ],
168 "topics": [],
169 "topicScores": [],
170 "token": "f18n35mrfdhqvg5houu3lp1u4erduj8u",
171 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
172 },
173 {
174 "title": [
175 0,
176 "Dolani"
177 ],
178 "topics": [],
179 "topicScores": [],
180 "token": "lnfakabnilb7rkb24ijtf3ock0fdms1n",
181 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
182 },
183 {
184 "title": [
185 0,
186 "Trestný_čin"
187 ],
188 "topics": [],
189 "topicScores": [],
190 "token": "8nb69ha50tq0t6ee9di4ridht492gh8a",
191 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
192 },
193 {
194 "title": [
195 0,
196 "Samoobsluha"
197 ],
198 "topics": [],
199 "topicScores": [],
200 "token": "ehjnp9lq8o8q0subo3t0u46ttgevjfc5",
201 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\Task"
202 }
203 ],
204 "invalidTasks": [],
205 "totalCount": 3852,
206 "offset": 0,
207 "filters": {
208 "task": [
209 "copyedit"
210 ],
211 "topic": [],
212 "topicMode": "AND",
213 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\TaskSetFilters"
214 },
215 "qualityGateConfig": [],
216 "_type_": "GrowthExperiments\\NewcomerTasks\\Task\\TaskSet"
217}
, so ~220 lines / 4 kB instead of ~1400 lines / 12kB. Not sure if that will make much of a difference in the end in terms of fetch performance but seems like an easy enough change to do.

Acceptance Criteria
  • taskType is a reference to the task type ID, instead of the JSON representation of the taskType object

Event Timeline

kostajh moved this task from Inbox to Needs Discussion on the Growth-Team board.
kostajh added subscribers: Sgs, mewoph, Tgr.

cc @Tgr @mewoph @Sgs to discuss if we think this should be done.

Seems like a good idea. Not only does it reduce cache size, it might be needed for task type configuration changes to take effect immediately.