3
11.43 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
787157
522176
692650
461884
351047
438520
644209
725438
432464
461709
518161
738212
659945
461762
529662
783054
438366
731178
445989
451454
455463
526578
590499
517120
443841
441258
423564
450149
495221
579213
573328
561984
596520
426495
432887
435577
461782
493024
486751
517356
512589
433271
488807
425682
457069
474813
472631
513529
403257
477831
567537
458240
541479
446592
527648
506188
496667
477772
413938
425562
435560
480477
431759
464842
499148
528931
430601
618797
494094
519272
630771
597146
416426
598172
]
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 (787157 , 522176 , 692650 , 461884 , 351047 , 438520 , 644209 , 725438 , 432464 , 461709 , 518161 , 738212 , 659945 , 461762 , 529662 , 783054 , 438366 , 731178 , 445989 , 451454 , 455463 , 526578 , 590499 , 517120 , 443841 , 441258 , 423564 , 450149 , 495221 , 579213 , 573328 , 561984 , 596520 , 426495 , 432887 , 435577 , 461782 , 493024 , 486751 , 517356 , 512589 , 433271 , 488807 , 425682 , 457069 , 474813 , 472631 , 513529 , 403257 , 477831 , 567537 , 458240 , 541479 , 446592 , 527648 , 506188 , 496667 , 477772 , 413938 , 425562 , 435560 , 480477 , 431759 , 464842 , 499148 , 528931 , 430601 , 618797 , 494094 , 519272 , 630771 , 597146 , 416426 , 598172 );
Copy
4
2.46 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
351047
403257
413938
416426
423564
425562
425682
426495
430601
431759
432464
432887
433271
435560
435577
438366
438520
441258
443841
445989
446592
450149
451454
455463
457069
458240
461709
461762
461782
461884
464842
472631
474813
477772
477831
480477
486751
488807
493024
494094
495221
496667
499148
506188
512589
513529
517120
517356
518161
519272
522176
526578
527648
528931
529662
541479
561984
567537
573328
579213
590499
596520
597146
598172
618797
630771
644209
659945
692650
725438
731178
738212
783054
787157
]
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 (351047 , 403257 , 413938 , 416426 , 423564 , 425562 , 425682 , 426495 , 430601 , 431759 , 432464 , 432887 , 433271 , 435560 , 435577 , 438366 , 438520 , 441258 , 443841 , 445989 , 446592 , 450149 , 451454 , 455463 , 457069 , 458240 , 461709 , 461762 , 461782 , 461884 , 464842 , 472631 , 474813 , 477772 , 477831 , 480477 , 486751 , 488807 , 493024 , 494094 , 495221 , 496667 , 499148 , 506188 , 512589 , 513529 , 517120 , 517356 , 518161 , 519272 , 522176 , 526578 , 527648 , 528931 , 529662 , 541479 , 561984 , 567537 , 573328 , 579213 , 590499 , 596520 , 597146 , 598172 , 618797 , 630771 , 644209 , 659945 , 692650 , 725438 , 731178 , 738212 , 783054 , 787157 );
Copy
5
181.57 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
351047
403257
413938
416426
423564
425562
425682
426495
430601
431759
432464
432887
433271
435560
435577
438366
438520
441258
443841
445989
446592
450149
451454
455463
457069
458240
461709
461762
461782
461884
464842
472631
474813
477772
477831
480477
486751
488807
493024
494094
495221
496667
499148
506188
512589
513529
517120
517356
518161
519272
522176
526578
527648
528931
529662
541479
561984
567537
573328
579213
590499
596520
597146
598172
618797
630771
644209
659945
692650
725438
731178
738212
783054
787157
]
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 (351047 , 403257 , 413938 , 416426 , 423564 , 425562 , 425682 , 426495 , 430601 , 431759 , 432464 , 432887 , 433271 , 435560 , 435577 , 438366 , 438520 , 441258 , 443841 , 445989 , 446592 , 450149 , 451454 , 455463 , 457069 , 458240 , 461709 , 461762 , 461782 , 461884 , 464842 , 472631 , 474813 , 477772 , 477831 , 480477 , 486751 , 488807 , 493024 , 494094 , 495221 , 496667 , 499148 , 506188 , 512589 , 513529 , 517120 , 517356 , 518161 , 519272 , 522176 , 526578 , 527648 , 528931 , 529662 , 541479 , 561984 , 567537 , 573328 , 579213 , 590499 , 596520 , 597146 , 598172 , 618797 , 630771 , 644209 , 659945 , 692650 , 725438 , 731178 , 738212 , 783054 , 787157 );
Copy