3
14.76 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
651770
737360
770612
686106
695870
799906
692092
794852
690346
824883
757443
778480
654556
598796
791638
432323
671644
773311
724302
420136
637129
733857
753443
438830
528064
693225
660405
666016
595549
413273
666459
478597
423425
724934
574511
642657
506299
413544
604821
532981
669079
814861
566557
597753
637025
519215
414061
406332
477496
535024
706945
451473
733134
507169
512528
537929
568457
524530
535006
536586
637009
568399
484483
679801
532643
507880
638967
623678
525440
524620
648257
457676
554425
]
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 (651770 , 737360 , 770612 , 686106 , 695870 , 799906 , 692092 , 794852 , 690346 , 824883 , 757443 , 778480 , 654556 , 598796 , 791638 , 432323 , 671644 , 773311 , 724302 , 420136 , 637129 , 733857 , 753443 , 438830 , 528064 , 693225 , 660405 , 666016 , 595549 , 413273 , 666459 , 478597 , 423425 , 724934 , 574511 , 642657 , 506299 , 413544 , 604821 , 532981 , 669079 , 814861 , 566557 , 597753 , 637025 , 519215 , 414061 , 406332 , 477496 , 535024 , 706945 , 451473 , 733134 , 507169 , 512528 , 537929 , 568457 , 524530 , 535006 , 536586 , 637009 , 568399 , 484483 , 679801 , 532643 , 507880 , 638967 , 623678 , 525440 , 524620 , 648257 , 457676 , 554425 );
Copy
4
2.49 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
406332
413273
413544
414061
420136
423425
432323
438830
451473
457676
477496
478597
484483
506299
507169
507880
512528
519215
524530
524620
525440
528064
532643
532981
535006
535024
536586
537929
554425
566557
568399
568457
574511
595549
597753
598796
604821
623678
637009
637025
637129
638967
642657
648257
651770
654556
660405
666016
666459
669079
671644
679801
686106
690346
692092
693225
695870
706945
724302
724934
733134
733857
737360
753443
757443
770612
773311
778480
791638
794852
799906
814861
824883
]
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 (406332 , 413273 , 413544 , 414061 , 420136 , 423425 , 432323 , 438830 , 451473 , 457676 , 477496 , 478597 , 484483 , 506299 , 507169 , 507880 , 512528 , 519215 , 524530 , 524620 , 525440 , 528064 , 532643 , 532981 , 535006 , 535024 , 536586 , 537929 , 554425 , 566557 , 568399 , 568457 , 574511 , 595549 , 597753 , 598796 , 604821 , 623678 , 637009 , 637025 , 637129 , 638967 , 642657 , 648257 , 651770 , 654556 , 660405 , 666016 , 666459 , 669079 , 671644 , 679801 , 686106 , 690346 , 692092 , 693225 , 695870 , 706945 , 724302 , 724934 , 733134 , 733857 , 737360 , 753443 , 757443 , 770612 , 773311 , 778480 , 791638 , 794852 , 799906 , 814861 , 824883 );
Copy
5
102.70 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
406332
413273
413544
414061
420136
423425
432323
438830
451473
457676
477496
478597
484483
506299
507169
507880
512528
519215
524530
524620
525440
528064
532643
532981
535006
535024
536586
537929
554425
566557
568399
568457
574511
595549
597753
598796
604821
623678
637009
637025
637129
638967
642657
648257
651770
654556
660405
666016
666459
669079
671644
679801
686106
690346
692092
693225
695870
706945
724302
724934
733134
733857
737360
753443
757443
770612
773311
778480
791638
794852
799906
814861
824883
]
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 (406332 , 413273 , 413544 , 414061 , 420136 , 423425 , 432323 , 438830 , 451473 , 457676 , 477496 , 478597 , 484483 , 506299 , 507169 , 507880 , 512528 , 519215 , 524530 , 524620 , 525440 , 528064 , 532643 , 532981 , 535006 , 535024 , 536586 , 537929 , 554425 , 566557 , 568399 , 568457 , 574511 , 595549 , 597753 , 598796 , 604821 , 623678 , 637009 , 637025 , 637129 , 638967 , 642657 , 648257 , 651770 , 654556 , 660405 , 666016 , 666459 , 669079 , 671644 , 679801 , 686106 , 690346 , 692092 , 693225 , 695870 , 706945 , 724302 , 724934 , 733134 , 733857 , 737360 , 753443 , 757443 , 770612 , 773311 , 778480 , 791638 , 794852 , 799906 , 814861 , 824883 );
Copy