3
9.87 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
482553
534034
631962
456786
678192
622008
771833
788262
381963
318318
681307
786235
514730
705519
635185
775971
729123
807692
766603
109313
632579
815354
681579
687185
677730
705694
742848
640524
714552
407290
395474
704216
548265
586652
792655
746995
725598
531206
542213
574884
684117
582332
595719
599113
603269
622990
600258
466552
531172
666866
612831
622799
614401
633444
541857
558614
716043
716900
809902
428301
517844
538815
445737
635215
639334
625423
]
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 (482553 , 534034 , 631962 , 456786 , 678192 , 622008 , 771833 , 788262 , 381963 , 318318 , 681307 , 786235 , 514730 , 705519 , 635185 , 775971 , 729123 , 807692 , 766603 , 109313 , 632579 , 815354 , 681579 , 687185 , 677730 , 705694 , 742848 , 640524 , 714552 , 407290 , 395474 , 704216 , 548265 , 586652 , 792655 , 746995 , 725598 , 531206 , 542213 , 574884 , 684117 , 582332 , 595719 , 599113 , 603269 , 622990 , 600258 , 466552 , 531172 , 666866 , 612831 , 622799 , 614401 , 633444 , 541857 , 558614 , 716043 , 716900 , 809902 , 428301 , 517844 , 538815 , 445737 , 635215 , 639334 , 625423 );
Copy
4
2.43 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
109313
318318
381963
395474
407290
428301
445737
456786
466552
482553
514730
517844
531172
531206
534034
538815
541857
542213
548265
558614
574884
582332
586652
595719
599113
600258
603269
612831
614401
622008
622799
622990
625423
631962
632579
633444
635185
635215
639334
640524
666866
677730
678192
681307
681579
684117
687185
704216
705519
705694
714552
716043
716900
725598
729123
742848
746995
766603
771833
775971
786235
788262
792655
807692
809902
815354
]
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 (109313 , 318318 , 381963 , 395474 , 407290 , 428301 , 445737 , 456786 , 466552 , 482553 , 514730 , 517844 , 531172 , 531206 , 534034 , 538815 , 541857 , 542213 , 548265 , 558614 , 574884 , 582332 , 586652 , 595719 , 599113 , 600258 , 603269 , 612831 , 614401 , 622008 , 622799 , 622990 , 625423 , 631962 , 632579 , 633444 , 635185 , 635215 , 639334 , 640524 , 666866 , 677730 , 678192 , 681307 , 681579 , 684117 , 687185 , 704216 , 705519 , 705694 , 714552 , 716043 , 716900 , 725598 , 729123 , 742848 , 746995 , 766603 , 771833 , 775971 , 786235 , 788262 , 792655 , 807692 , 809902 , 815354 );
Copy
5
81.76 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
109313
318318
381963
395474
407290
428301
445737
456786
466552
482553
514730
517844
531172
531206
534034
538815
541857
542213
548265
558614
574884
582332
586652
595719
599113
600258
603269
612831
614401
622008
622799
622990
625423
631962
632579
633444
635185
635215
639334
640524
666866
677730
678192
681307
681579
684117
687185
704216
705519
705694
714552
716043
716900
725598
729123
742848
746995
766603
771833
775971
786235
788262
792655
807692
809902
815354
]
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 (109313 , 318318 , 381963 , 395474 , 407290 , 428301 , 445737 , 456786 , 466552 , 482553 , 514730 , 517844 , 531172 , 531206 , 534034 , 538815 , 541857 , 542213 , 548265 , 558614 , 574884 , 582332 , 586652 , 595719 , 599113 , 600258 , 603269 , 612831 , 614401 , 622008 , 622799 , 622990 , 625423 , 631962 , 632579 , 633444 , 635185 , 635215 , 639334 , 640524 , 666866 , 677730 , 678192 , 681307 , 681579 , 684117 , 687185 , 704216 , 705519 , 705694 , 714552 , 716043 , 716900 , 725598 , 729123 , 742848 , 746995 , 766603 , 771833 , 775971 , 786235 , 788262 , 792655 , 807692 , 809902 , 815354 );
Copy