3
9.38 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
789494
467310
557148
825224
819143
826977
794603
772675
683784
812424
395557
814652
613178
584423
817321
742086
782774
187286
805631
724407
597714
785607
698127
642260
454016
801982
414001
464229
408278
407374
726596
537927
407517
449267
568504
680906
476434
484495
449238
449301
451096
464245
757512
449302
665920
603220
463118
509635
580319
399358
453746
537508
528847
449317
711998
524173
775817
508283
457515
543845
799366
795514
456726
620340
543841
464650
425878
567848
531231
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (789494 , 467310 , 557148 , 825224 , 819143 , 826977 , 794603 , 772675 , 683784 , 812424 , 395557 , 814652 , 613178 , 584423 , 817321 , 742086 , 782774 , 187286 , 805631 , 724407 , 597714 , 785607 , 698127 , 642260 , 454016 , 801982 , 414001 , 464229 , 408278 , 407374 , 726596 , 537927 , 407517 , 449267 , 568504 , 680906 , 476434 , 484495 , 449238 , 449301 , 451096 , 464245 , 757512 , 449302 , 665920 , 603220 , 463118 , 509635 , 580319 , 399358 , 453746 , 537508 , 528847 , 449317 , 711998 , 524173 , 775817 , 508283 , 457515 , 543845 , 799366 , 795514 , 456726 , 620340 , 543841 , 464650 , 425878 , 567848 , 531231 );
Copy
4
2.32 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
187286
395557
399358
407374
407517
408278
414001
425878
449238
449267
449301
449302
449317
451096
453746
454016
456726
457515
463118
464229
464245
464650
467310
476434
484495
508283
509635
524173
528847
531231
537508
537927
543841
543845
557148
567848
568504
580319
584423
597714
603220
613178
620340
642260
665920
680906
683784
698127
711998
724407
726596
742086
757512
772675
775817
782774
785607
789494
794603
795514
799366
801982
805631
812424
814652
817321
819143
825224
826977
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (187286 , 395557 , 399358 , 407374 , 407517 , 408278 , 414001 , 425878 , 449238 , 449267 , 449301 , 449302 , 449317 , 451096 , 453746 , 454016 , 456726 , 457515 , 463118 , 464229 , 464245 , 464650 , 467310 , 476434 , 484495 , 508283 , 509635 , 524173 , 528847 , 531231 , 537508 , 537927 , 543841 , 543845 , 557148 , 567848 , 568504 , 580319 , 584423 , 597714 , 603220 , 613178 , 620340 , 642260 , 665920 , 680906 , 683784 , 698127 , 711998 , 724407 , 726596 , 742086 , 757512 , 772675 , 775817 , 782774 , 785607 , 789494 , 794603 , 795514 , 799366 , 801982 , 805631 , 812424 , 814652 , 817321 , 819143 , 825224 , 826977 );
Copy
5
103.14 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
187286
395557
399358
407374
407517
408278
414001
425878
449238
449267
449301
449302
449317
451096
453746
454016
456726
457515
463118
464229
464245
464650
467310
476434
484495
508283
509635
524173
528847
531231
537508
537927
543841
543845
557148
567848
568504
580319
584423
597714
603220
613178
620340
642260
665920
680906
683784
698127
711998
724407
726596
742086
757512
772675
775817
782774
785607
789494
794603
795514
799366
801982
805631
812424
814652
817321
819143
825224
826977
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (187286 , 395557 , 399358 , 407374 , 407517 , 408278 , 414001 , 425878 , 449238 , 449267 , 449301 , 449302 , 449317 , 451096 , 453746 , 454016 , 456726 , 457515 , 463118 , 464229 , 464245 , 464650 , 467310 , 476434 , 484495 , 508283 , 509635 , 524173 , 528847 , 531231 , 537508 , 537927 , 543841 , 543845 , 557148 , 567848 , 568504 , 580319 , 584423 , 597714 , 603220 , 613178 , 620340 , 642260 , 665920 , 680906 , 683784 , 698127 , 711998 , 724407 , 726596 , 742086 , 757512 , 772675 , 775817 , 782774 , 785607 , 789494 , 794603 , 795514 , 799366 , 801982 , 805631 , 812424 , 814652 , 817321 , 819143 , 825224 , 826977 );
Copy