3
14.67 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
567248
541440
541442
556593
669012
669332
669386
578680
608153
616315
613356
627147
639584
586385
610552
590102
604781
614968
616237
463689
468237
475199
413392
421856
446064
452436
442196
453583
524687
483745
490380
524677
483739
522797
529154
525727
439424
446751
523181
579677
579707
544937
554986
605661
587272
589400
704222
445493
471455
466564
479527
421827
480454
430267
500424
523885
439960
450357
417674
439797
647330
575556
575287
603286
528452
553832
423934
470064
505891
586713
599951
606762
537789
520262
616024
618762
]
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 (567248 , 541440 , 541442 , 556593 , 669012 , 669332 , 669386 , 578680 , 608153 , 616315 , 613356 , 627147 , 639584 , 586385 , 610552 , 590102 , 604781 , 614968 , 616237 , 463689 , 468237 , 475199 , 413392 , 421856 , 446064 , 452436 , 442196 , 453583 , 524687 , 483745 , 490380 , 524677 , 483739 , 522797 , 529154 , 525727 , 439424 , 446751 , 523181 , 579677 , 579707 , 544937 , 554986 , 605661 , 587272 , 589400 , 704222 , 445493 , 471455 , 466564 , 479527 , 421827 , 480454 , 430267 , 500424 , 523885 , 439960 , 450357 , 417674 , 439797 , 647330 , 575556 , 575287 , 603286 , 528452 , 553832 , 423934 , 470064 , 505891 , 586713 , 599951 , 606762 , 537789 , 520262 , 616024 , 618762 );
Copy
4
2.70 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
413392
417674
421827
421856
423934
430267
439424
439797
439960
442196
445493
446064
446751
450357
452436
453583
463689
466564
468237
470064
471455
475199
479527
480454
483739
483745
490380
500424
505891
520262
522797
523181
523885
524687
525727
528452
529154
537789
541440
541442
544937
553832
554986
556593
567248
575287
575556
578680
579677
579707
586385
586713
587272
589400
590102
599951
603286
604781
605661
606762
608153
610552
613356
614968
616024
616237
616315
618762
627147
639584
647330
669012
669332
669386
704222
]
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 (413392 , 417674 , 421827 , 421856 , 423934 , 430267 , 439424 , 439797 , 439960 , 442196 , 445493 , 446064 , 446751 , 450357 , 452436 , 453583 , 463689 , 466564 , 468237 , 470064 , 471455 , 475199 , 479527 , 480454 , 483739 , 483745 , 490380 , 500424 , 505891 , 520262 , 522797 , 523181 , 523885 , 524687 , 525727 , 528452 , 529154 , 537789 , 541440 , 541442 , 544937 , 553832 , 554986 , 556593 , 567248 , 575287 , 575556 , 578680 , 579677 , 579707 , 586385 , 586713 , 587272 , 589400 , 590102 , 599951 , 603286 , 604781 , 605661 , 606762 , 608153 , 610552 , 613356 , 614968 , 616024 , 616237 , 616315 , 618762 , 627147 , 639584 , 647330 , 669012 , 669332 , 669386 , 704222 );
Copy
5
92.05 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
413392
417674
421827
421856
423934
430267
439424
439797
439960
442196
445493
446064
446751
450357
452436
453583
463689
466564
468237
470064
471455
475199
479527
480454
483739
483745
490380
500424
505891
520262
522797
523181
523885
524687
525727
528452
529154
537789
541440
541442
544937
553832
554986
556593
567248
575287
575556
578680
579677
579707
586385
586713
587272
589400
590102
599951
603286
604781
605661
606762
608153
610552
613356
614968
616024
616237
616315
618762
627147
639584
647330
669012
669332
669386
704222
]
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 (413392 , 417674 , 421827 , 421856 , 423934 , 430267 , 439424 , 439797 , 439960 , 442196 , 445493 , 446064 , 446751 , 450357 , 452436 , 453583 , 463689 , 466564 , 468237 , 470064 , 471455 , 475199 , 479527 , 480454 , 483739 , 483745 , 490380 , 500424 , 505891 , 520262 , 522797 , 523181 , 523885 , 524687 , 525727 , 528452 , 529154 , 537789 , 541440 , 541442 , 544937 , 553832 , 554986 , 556593 , 567248 , 575287 , 575556 , 578680 , 579677 , 579707 , 586385 , 586713 , 587272 , 589400 , 590102 , 599951 , 603286 , 604781 , 605661 , 606762 , 608153 , 610552 , 613356 , 614968 , 616024 , 616237 , 616315 , 618762 , 627147 , 639584 , 647330 , 669012 , 669332 , 669386 , 704222 );
Copy