3
8.82 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
646606
540864
737866
792210
827389
796408
803821
539960
709803
803822
804630
510737
490638
496213
572737
570867
606087
635412
539197
651584
472535
572649
456667
804638
666706
805259
493402
589107
809606
624422
786083
765422
516368
785348
702307
794999
693716
754153
500298
551116
486319
679236
702454
737868
398334
558403
556261
650531
698780
627349
791337
73052
536100
541428
799407
750662
554791
458229
539956
670913
738446
513908
409909
491591
521794
530950
503370
403891
499551
593193
]
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 (646606 , 540864 , 737866 , 792210 , 827389 , 796408 , 803821 , 539960 , 709803 , 803822 , 804630 , 510737 , 490638 , 496213 , 572737 , 570867 , 606087 , 635412 , 539197 , 651584 , 472535 , 572649 , 456667 , 804638 , 666706 , 805259 , 493402 , 589107 , 809606 , 624422 , 786083 , 765422 , 516368 , 785348 , 702307 , 794999 , 693716 , 754153 , 500298 , 551116 , 486319 , 679236 , 702454 , 737868 , 398334 , 558403 , 556261 , 650531 , 698780 , 627349 , 791337 , 73052 , 536100 , 541428 , 799407 , 750662 , 554791 , 458229 , 539956 , 670913 , 738446 , 513908 , 409909 , 491591 , 521794 , 530950 , 503370 , 403891 , 499551 , 593193 );
Copy
4
2.20 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
73052
398334
403891
409909
456667
458229
472535
486319
490638
491591
493402
496213
499551
500298
503370
510737
513908
516368
521794
530950
536100
539197
539956
539960
540864
541428
551116
554791
556261
558403
570867
572649
572737
589107
593193
606087
624422
627349
635412
646606
650531
651584
666706
670913
679236
693716
698780
702307
702454
709803
737866
737868
738446
750662
754153
765422
785348
786083
791337
792210
794999
796408
799407
803821
803822
804630
804638
805259
809606
827389
]
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 (73052 , 398334 , 403891 , 409909 , 456667 , 458229 , 472535 , 486319 , 490638 , 491591 , 493402 , 496213 , 499551 , 500298 , 503370 , 510737 , 513908 , 516368 , 521794 , 530950 , 536100 , 539197 , 539956 , 539960 , 540864 , 541428 , 551116 , 554791 , 556261 , 558403 , 570867 , 572649 , 572737 , 589107 , 593193 , 606087 , 624422 , 627349 , 635412 , 646606 , 650531 , 651584 , 666706 , 670913 , 679236 , 693716 , 698780 , 702307 , 702454 , 709803 , 737866 , 737868 , 738446 , 750662 , 754153 , 765422 , 785348 , 786083 , 791337 , 792210 , 794999 , 796408 , 799407 , 803821 , 803822 , 804630 , 804638 , 805259 , 809606 , 827389 );
Copy
5
82.53 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
73052
398334
403891
409909
456667
458229
472535
486319
490638
491591
493402
496213
499551
500298
503370
510737
513908
516368
521794
530950
536100
539197
539956
539960
540864
541428
551116
554791
556261
558403
570867
572649
572737
589107
593193
606087
624422
627349
635412
646606
650531
651584
666706
670913
679236
693716
698780
702307
702454
709803
737866
737868
738446
750662
754153
765422
785348
786083
791337
792210
794999
796408
799407
803821
803822
804630
804638
805259
809606
827389
]
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 (73052 , 398334 , 403891 , 409909 , 456667 , 458229 , 472535 , 486319 , 490638 , 491591 , 493402 , 496213 , 499551 , 500298 , 503370 , 510737 , 513908 , 516368 , 521794 , 530950 , 536100 , 539197 , 539956 , 539960 , 540864 , 541428 , 551116 , 554791 , 556261 , 558403 , 570867 , 572649 , 572737 , 589107 , 593193 , 606087 , 624422 , 627349 , 635412 , 646606 , 650531 , 651584 , 666706 , 670913 , 679236 , 693716 , 698780 , 702307 , 702454 , 709803 , 737866 , 737868 , 738446 , 750662 , 754153 , 765422 , 785348 , 786083 , 791337 , 792210 , 794999 , 796408 , 799407 , 803821 , 803822 , 804630 , 804638 , 805259 , 809606 , 827389 );
Copy