3
12.13 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
714515
720174
782427
509099
823275
452643
488454
465247
508072
534604
581213
583866
571086
714925
722934
708551
636403
758865
784583
420513
454625
486610
441454
442524
427971
457821
464804
563692
652213
680267
549739
592402
598899
422273
483210
418440
434774
445883
447948
527009
580807
557569
663769
612699
438013
492528
517405
404693
429383
444851
457132
507284
498623
564541
483553
457884
536903
530630
545245
710524
478973
502779
486871
553031
]
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 (714515 , 720174 , 782427 , 509099 , 823275 , 452643 , 488454 , 465247 , 508072 , 534604 , 581213 , 583866 , 571086 , 714925 , 722934 , 708551 , 636403 , 758865 , 784583 , 420513 , 454625 , 486610 , 441454 , 442524 , 427971 , 457821 , 464804 , 563692 , 652213 , 680267 , 549739 , 592402 , 598899 , 422273 , 483210 , 418440 , 434774 , 445883 , 447948 , 527009 , 580807 , 557569 , 663769 , 612699 , 438013 , 492528 , 517405 , 404693 , 429383 , 444851 , 457132 , 507284 , 498623 , 564541 , 483553 , 457884 , 536903 , 530630 , 545245 , 710524 , 478973 , 502779 , 486871 , 553031 );
Copy
4
3.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
404693
418440
420513
422273
427971
429383
434774
438013
441454
442524
444851
445883
447948
452643
454625
457132
457821
457884
464804
465247
478973
483210
483553
486610
486871
488454
492528
498623
502779
507284
508072
509099
517405
527009
530630
534604
536903
545245
549739
553031
557569
563692
564541
571086
580807
581213
583866
592402
598899
612699
636403
652213
663769
680267
708551
710524
714515
714925
720174
722934
758865
782427
784583
823275
]
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 (404693 , 418440 , 420513 , 422273 , 427971 , 429383 , 434774 , 438013 , 441454 , 442524 , 444851 , 445883 , 447948 , 452643 , 454625 , 457132 , 457821 , 457884 , 464804 , 465247 , 478973 , 483210 , 483553 , 486610 , 486871 , 488454 , 492528 , 498623 , 502779 , 507284 , 508072 , 509099 , 517405 , 527009 , 530630 , 534604 , 536903 , 545245 , 549739 , 553031 , 557569 , 563692 , 564541 , 571086 , 580807 , 581213 , 583866 , 592402 , 598899 , 612699 , 636403 , 652213 , 663769 , 680267 , 708551 , 710524 , 714515 , 714925 , 720174 , 722934 , 758865 , 782427 , 784583 , 823275 );
Copy
5
108.17 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
404693
418440
420513
422273
427971
429383
434774
438013
441454
442524
444851
445883
447948
452643
454625
457132
457821
457884
464804
465247
478973
483210
483553
486610
486871
488454
492528
498623
502779
507284
508072
509099
517405
527009
530630
534604
536903
545245
549739
553031
557569
563692
564541
571086
580807
581213
583866
592402
598899
612699
636403
652213
663769
680267
708551
710524
714515
714925
720174
722934
758865
782427
784583
823275
]
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 (404693 , 418440 , 420513 , 422273 , 427971 , 429383 , 434774 , 438013 , 441454 , 442524 , 444851 , 445883 , 447948 , 452643 , 454625 , 457132 , 457821 , 457884 , 464804 , 465247 , 478973 , 483210 , 483553 , 486610 , 486871 , 488454 , 492528 , 498623 , 502779 , 507284 , 508072 , 509099 , 517405 , 527009 , 530630 , 534604 , 536903 , 545245 , 549739 , 553031 , 557569 , 563692 , 564541 , 571086 , 580807 , 581213 , 583866 , 592402 , 598899 , 612699 , 636403 , 652213 , 663769 , 680267 , 708551 , 710524 , 714515 , 714925 , 720174 , 722934 , 758865 , 782427 , 784583 , 823275 );
Copy