3
15.51 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
502034
526214
482367
550647
543924
559569
678791
549244
624793
602668
606349
807990
453100
462695
462319
472142
454256
454267
484643
485749
485777
491418
522596
391156
487343
517048
678779
483152
467043
482304
486444
500467
524895
554770
563422
597867
623487
471584
529315
485735
598653
550437
580340
523929
616711
461018
466982
459827
477707
498019
504481
531316
540688
462101
466069
485700
514436
522592
521131
559062
467009
528538
516053
524882
515262
549239
483355
514741
525116
522616
475294
466979
554518
580667
515723
]
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 (502034 , 526214 , 482367 , 550647 , 543924 , 559569 , 678791 , 549244 , 624793 , 602668 , 606349 , 807990 , 453100 , 462695 , 462319 , 472142 , 454256 , 454267 , 484643 , 485749 , 485777 , 491418 , 522596 , 391156 , 487343 , 517048 , 678779 , 483152 , 467043 , 482304 , 486444 , 500467 , 524895 , 554770 , 563422 , 597867 , 623487 , 471584 , 529315 , 485735 , 598653 , 550437 , 580340 , 523929 , 616711 , 461018 , 466982 , 459827 , 477707 , 498019 , 504481 , 531316 , 540688 , 462101 , 466069 , 485700 , 514436 , 522592 , 521131 , 559062 , 467009 , 528538 , 516053 , 524882 , 515262 , 549239 , 483355 , 514741 , 525116 , 522616 , 475294 , 466979 , 554518 , 580667 , 515723 );
Copy
4
3.23 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
391156
453100
454256
454267
459827
461018
462101
462319
462695
466069
466979
466982
467009
467043
471584
472142
475294
477707
482304
482367
483152
483355
484643
485700
485735
485749
485777
486444
487343
491418
498019
500467
502034
504481
514436
514741
515262
515723
516053
517048
521131
522592
522596
522616
523929
524882
524895
525116
526214
528538
529315
531316
540688
543924
549239
549244
550437
550647
554518
554770
559062
559569
563422
580340
580667
597867
598653
602668
606349
616711
623487
624793
678779
678791
807990
]
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 (391156 , 453100 , 454256 , 454267 , 459827 , 461018 , 462101 , 462319 , 462695 , 466069 , 466979 , 466982 , 467009 , 467043 , 471584 , 472142 , 475294 , 477707 , 482304 , 482367 , 483152 , 483355 , 484643 , 485700 , 485735 , 485749 , 485777 , 486444 , 487343 , 491418 , 498019 , 500467 , 502034 , 504481 , 514436 , 514741 , 515262 , 515723 , 516053 , 517048 , 521131 , 522592 , 522596 , 522616 , 523929 , 524882 , 524895 , 525116 , 526214 , 528538 , 529315 , 531316 , 540688 , 543924 , 549239 , 549244 , 550437 , 550647 , 554518 , 554770 , 559062 , 559569 , 563422 , 580340 , 580667 , 597867 , 598653 , 602668 , 606349 , 616711 , 623487 , 624793 , 678779 , 678791 , 807990 );
Copy
5
117.50 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
391156
453100
454256
454267
459827
461018
462101
462319
462695
466069
466979
466982
467009
467043
471584
472142
475294
477707
482304
482367
483152
483355
484643
485700
485735
485749
485777
486444
487343
491418
498019
500467
502034
504481
514436
514741
515262
515723
516053
517048
521131
522592
522596
522616
523929
524882
524895
525116
526214
528538
529315
531316
540688
543924
549239
549244
550437
550647
554518
554770
559062
559569
563422
580340
580667
597867
598653
602668
606349
616711
623487
624793
678779
678791
807990
]
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 (391156 , 453100 , 454256 , 454267 , 459827 , 461018 , 462101 , 462319 , 462695 , 466069 , 466979 , 466982 , 467009 , 467043 , 471584 , 472142 , 475294 , 477707 , 482304 , 482367 , 483152 , 483355 , 484643 , 485700 , 485735 , 485749 , 485777 , 486444 , 487343 , 491418 , 498019 , 500467 , 502034 , 504481 , 514436 , 514741 , 515262 , 515723 , 516053 , 517048 , 521131 , 522592 , 522596 , 522616 , 523929 , 524882 , 524895 , 525116 , 526214 , 528538 , 529315 , 531316 , 540688 , 543924 , 549239 , 549244 , 550437 , 550647 , 554518 , 554770 , 559062 , 559569 , 563422 , 580340 , 580667 , 597867 , 598653 , 602668 , 606349 , 616711 , 623487 , 624793 , 678779 , 678791 , 807990 );
Copy