3
14.49 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
447104
464395
477183
428987
446811
417344
428494
481581
487632
495608
558196
590721
434310
564786
502043
815017
465688
530884
552319
690124
722373
607293
598225
611241
384016
430436
435479
462483
497866
425656
503840
393396
486963
448821
581902
582234
682531
601669
724305
809930
445543
449869
425523
421566
524896
516040
540350
553056
454328
529213
472505
471380
486594
574657
446041
437868
477210
510286
578326
650380
445641
448839
519933
386874
418959
478807
431365
458010
508523
565067
497889
507733
434601
430018
428372
]
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 (447104 , 464395 , 477183 , 428987 , 446811 , 417344 , 428494 , 481581 , 487632 , 495608 , 558196 , 590721 , 434310 , 564786 , 502043 , 815017 , 465688 , 530884 , 552319 , 690124 , 722373 , 607293 , 598225 , 611241 , 384016 , 430436 , 435479 , 462483 , 497866 , 425656 , 503840 , 393396 , 486963 , 448821 , 581902 , 582234 , 682531 , 601669 , 724305 , 809930 , 445543 , 449869 , 425523 , 421566 , 524896 , 516040 , 540350 , 553056 , 454328 , 529213 , 472505 , 471380 , 486594 , 574657 , 446041 , 437868 , 477210 , 510286 , 578326 , 650380 , 445641 , 448839 , 519933 , 386874 , 418959 , 478807 , 431365 , 458010 , 508523 , 565067 , 497889 , 507733 , 434601 , 430018 , 428372 );
Copy
4
2.57 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
384016
386874
393396
417344
418959
421566
425523
425656
428372
428494
428987
430018
430436
431365
434310
434601
435479
437868
445543
445641
446041
446811
447104
448821
448839
449869
454328
458010
462483
464395
465688
471380
472505
477183
477210
478807
481581
486594
486963
487632
495608
497866
497889
502043
503840
507733
508523
510286
516040
519933
524896
529213
530884
540350
552319
553056
558196
564786
565067
574657
578326
581902
582234
590721
598225
601669
607293
611241
650380
682531
690124
722373
724305
809930
815017
]
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 (384016 , 386874 , 393396 , 417344 , 418959 , 421566 , 425523 , 425656 , 428372 , 428494 , 428987 , 430018 , 430436 , 431365 , 434310 , 434601 , 435479 , 437868 , 445543 , 445641 , 446041 , 446811 , 447104 , 448821 , 448839 , 449869 , 454328 , 458010 , 462483 , 464395 , 465688 , 471380 , 472505 , 477183 , 477210 , 478807 , 481581 , 486594 , 486963 , 487632 , 495608 , 497866 , 497889 , 502043 , 503840 , 507733 , 508523 , 510286 , 516040 , 519933 , 524896 , 529213 , 530884 , 540350 , 552319 , 553056 , 558196 , 564786 , 565067 , 574657 , 578326 , 581902 , 582234 , 590721 , 598225 , 601669 , 607293 , 611241 , 650380 , 682531 , 690124 , 722373 , 724305 , 809930 , 815017 );
Copy
5
164.22 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
384016
386874
393396
417344
418959
421566
425523
425656
428372
428494
428987
430018
430436
431365
434310
434601
435479
437868
445543
445641
446041
446811
447104
448821
448839
449869
454328
458010
462483
464395
465688
471380
472505
477183
477210
478807
481581
486594
486963
487632
495608
497866
497889
502043
503840
507733
508523
510286
516040
519933
524896
529213
530884
540350
552319
553056
558196
564786
565067
574657
578326
581902
582234
590721
598225
601669
607293
611241
650380
682531
690124
722373
724305
809930
815017
]
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 (384016 , 386874 , 393396 , 417344 , 418959 , 421566 , 425523 , 425656 , 428372 , 428494 , 428987 , 430018 , 430436 , 431365 , 434310 , 434601 , 435479 , 437868 , 445543 , 445641 , 446041 , 446811 , 447104 , 448821 , 448839 , 449869 , 454328 , 458010 , 462483 , 464395 , 465688 , 471380 , 472505 , 477183 , 477210 , 478807 , 481581 , 486594 , 486963 , 487632 , 495608 , 497866 , 497889 , 502043 , 503840 , 507733 , 508523 , 510286 , 516040 , 519933 , 524896 , 529213 , 530884 , 540350 , 552319 , 553056 , 558196 , 564786 , 565067 , 574657 , 578326 , 581902 , 582234 , 590721 , 598225 , 601669 , 607293 , 611241 , 650380 , 682531 , 690124 , 722373 , 724305 , 809930 , 815017 );
Copy