3
10.00 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
818469
818609
818051
428904
823222
821726
818057
603174
411953
579371
402342
630861
532746
400513
673613
756231
739863
814631
814893
634477
775810
801742
748243
533351
813759
814784
407762
821069
673358
589139
775858
641055
643523
820995
533855
530863
550221
556016
637746
643935
634475
780968
806078
810835
703492
526060
519548
469030
815490
532079
570840
619468
424695
533350
640022
604409
634487
641141
647932
401919
532676
492760
623380
648853
662137
582540
634472
535016
544800
432751
582277
611558
526104
472750
]
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 (818469 , 818609 , 818051 , 428904 , 823222 , 821726 , 818057 , 603174 , 411953 , 579371 , 402342 , 630861 , 532746 , 400513 , 673613 , 756231 , 739863 , 814631 , 814893 , 634477 , 775810 , 801742 , 748243 , 533351 , 813759 , 814784 , 407762 , 821069 , 673358 , 589139 , 775858 , 641055 , 643523 , 820995 , 533855 , 530863 , 550221 , 556016 , 637746 , 643935 , 634475 , 780968 , 806078 , 810835 , 703492 , 526060 , 519548 , 469030 , 815490 , 532079 , 570840 , 619468 , 424695 , 533350 , 640022 , 604409 , 634487 , 641141 , 647932 , 401919 , 532676 , 492760 , 623380 , 648853 , 662137 , 582540 , 634472 , 535016 , 544800 , 432751 , 582277 , 611558 , 526104 , 472750 );
Copy
4
2.73 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
400513
401919
402342
407762
411953
424695
428904
432751
469030
472750
492760
519548
526060
526104
530863
532079
532676
532746
533350
533351
533855
535016
544800
550221
556016
570840
579371
582277
582540
589139
603174
604409
611558
619468
623380
630861
634472
634475
634477
634487
637746
640022
641055
641141
643523
643935
647932
648853
662137
673358
673613
703492
739863
748243
756231
775810
775858
780968
801742
806078
810835
813759
814631
814784
814893
815490
818051
818057
818469
818609
820995
821069
821726
823222
]
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 (400513 , 401919 , 402342 , 407762 , 411953 , 424695 , 428904 , 432751 , 469030 , 472750 , 492760 , 519548 , 526060 , 526104 , 530863 , 532079 , 532676 , 532746 , 533350 , 533351 , 533855 , 535016 , 544800 , 550221 , 556016 , 570840 , 579371 , 582277 , 582540 , 589139 , 603174 , 604409 , 611558 , 619468 , 623380 , 630861 , 634472 , 634475 , 634477 , 634487 , 637746 , 640022 , 641055 , 641141 , 643523 , 643935 , 647932 , 648853 , 662137 , 673358 , 673613 , 703492 , 739863 , 748243 , 756231 , 775810 , 775858 , 780968 , 801742 , 806078 , 810835 , 813759 , 814631 , 814784 , 814893 , 815490 , 818051 , 818057 , 818469 , 818609 , 820995 , 821069 , 821726 , 823222 );
Copy
5
101.99 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
400513
401919
402342
407762
411953
424695
428904
432751
469030
472750
492760
519548
526060
526104
530863
532079
532676
532746
533350
533351
533855
535016
544800
550221
556016
570840
579371
582277
582540
589139
603174
604409
611558
619468
623380
630861
634472
634475
634477
634487
637746
640022
641055
641141
643523
643935
647932
648853
662137
673358
673613
703492
739863
748243
756231
775810
775858
780968
801742
806078
810835
813759
814631
814784
814893
815490
818051
818057
818469
818609
820995
821069
821726
823222
]
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 (400513 , 401919 , 402342 , 407762 , 411953 , 424695 , 428904 , 432751 , 469030 , 472750 , 492760 , 519548 , 526060 , 526104 , 530863 , 532079 , 532676 , 532746 , 533350 , 533351 , 533855 , 535016 , 544800 , 550221 , 556016 , 570840 , 579371 , 582277 , 582540 , 589139 , 603174 , 604409 , 611558 , 619468 , 623380 , 630861 , 634472 , 634475 , 634477 , 634487 , 637746 , 640022 , 641055 , 641141 , 643523 , 643935 , 647932 , 648853 , 662137 , 673358 , 673613 , 703492 , 739863 , 748243 , 756231 , 775810 , 775858 , 780968 , 801742 , 806078 , 810835 , 813759 , 814631 , 814784 , 814893 , 815490 , 818051 , 818057 , 818469 , 818609 , 820995 , 821069 , 821726 , 823222 );
Copy