3
11.58 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
662009
809478
572654
723461
720739
508830
822745
822179
604336
549004
770324
445426
756207
769793
592322
659387
815133
536667
649187
715371
755467
805498
624222
531065
802539
583607
800334
595376
720301
716085
463941
514404
569100
531087
531263
816215
769885
687432
819490
810692
465652
395862
820770
826002
468484
447521
447516
454722
505889
454774
503255
419654
636271
395723
489168
455915
665926
447473
471176
624346
499776
463929
428494
575479
640534
503144
422049
469520
452131
433200
522949
448878
568055
615800
]
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 (662009 , 809478 , 572654 , 723461 , 720739 , 508830 , 822745 , 822179 , 604336 , 549004 , 770324 , 445426 , 756207 , 769793 , 592322 , 659387 , 815133 , 536667 , 649187 , 715371 , 755467 , 805498 , 624222 , 531065 , 802539 , 583607 , 800334 , 595376 , 720301 , 716085 , 463941 , 514404 , 569100 , 531087 , 531263 , 816215 , 769885 , 687432 , 819490 , 810692 , 465652 , 395862 , 820770 , 826002 , 468484 , 447521 , 447516 , 454722 , 505889 , 454774 , 503255 , 419654 , 636271 , 395723 , 489168 , 455915 , 665926 , 447473 , 471176 , 624346 , 499776 , 463929 , 428494 , 575479 , 640534 , 503144 , 422049 , 469520 , 452131 , 433200 , 522949 , 448878 , 568055 , 615800 );
Copy
4
4.08 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
395723
395862
419654
422049
428494
433200
445426
447473
447516
447521
448878
452131
454722
454774
455915
463929
463941
465652
468484
469520
471176
489168
499776
503144
503255
505889
508830
514404
522949
531065
531087
531263
536667
549004
568055
569100
572654
575479
583607
592322
604336
615800
624222
624346
636271
640534
649187
659387
662009
665926
687432
715371
716085
720301
720739
723461
755467
756207
769793
769885
770324
800334
802539
805498
809478
810692
815133
816215
819490
820770
822179
822745
826002
]
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 (395723 , 395862 , 419654 , 422049 , 428494 , 433200 , 445426 , 447473 , 447516 , 447521 , 448878 , 452131 , 454722 , 454774 , 455915 , 463929 , 463941 , 465652 , 468484 , 469520 , 471176 , 489168 , 499776 , 503144 , 503255 , 505889 , 508830 , 514404 , 522949 , 531065 , 531087 , 531263 , 536667 , 549004 , 568055 , 569100 , 572654 , 575479 , 583607 , 592322 , 604336 , 615800 , 624222 , 624346 , 636271 , 640534 , 649187 , 659387 , 662009 , 665926 , 687432 , 715371 , 716085 , 720301 , 720739 , 723461 , 755467 , 756207 , 769793 , 769885 , 770324 , 800334 , 802539 , 805498 , 809478 , 810692 , 815133 , 816215 , 819490 , 820770 , 822179 , 822745 , 826002 );
Copy
5
138.98 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
395723
395862
419654
422049
428494
433200
445426
447473
447516
447521
448878
452131
454722
454774
455915
463929
463941
465652
468484
469520
471176
489168
499776
503144
503255
505889
508830
514404
522949
531065
531087
531263
536667
549004
568055
569100
572654
575479
583607
592322
604336
615800
624222
624346
636271
640534
649187
659387
662009
665926
687432
715371
716085
720301
720739
723461
755467
756207
769793
769885
770324
800334
802539
805498
809478
810692
815133
816215
819490
820770
822179
822745
826002
]
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 (395723 , 395862 , 419654 , 422049 , 428494 , 433200 , 445426 , 447473 , 447516 , 447521 , 448878 , 452131 , 454722 , 454774 , 455915 , 463929 , 463941 , 465652 , 468484 , 469520 , 471176 , 489168 , 499776 , 503144 , 503255 , 505889 , 508830 , 514404 , 522949 , 531065 , 531087 , 531263 , 536667 , 549004 , 568055 , 569100 , 572654 , 575479 , 583607 , 592322 , 604336 , 615800 , 624222 , 624346 , 636271 , 640534 , 649187 , 659387 , 662009 , 665926 , 687432 , 715371 , 716085 , 720301 , 720739 , 723461 , 755467 , 756207 , 769793 , 769885 , 770324 , 800334 , 802539 , 805498 , 809478 , 810692 , 815133 , 816215 , 819490 , 820770 , 822179 , 822745 , 826002 );
Copy