4
9.75 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
412091
398849
399012
382501
427045
486248
387265
435315
427472
464485
453428
516453
395452
435130
492813
504752
412539
394747
448919
473145
473605
414135
453438
563932
620100
566587
409421
443190
311092
494543
444674
391607
450765
434070
459658
395759
435275
514763
444836
423460
425112
467379
389821
419330
456234
456919
571799
479350
480378
523752
463207
570960
453033
573939
513769
461727
545526
469443
425555
428884
428143
467383
509819
492196
516930
605764
484249
546058
555182
611416
]
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 (412091 , 398849 , 399012 , 382501 , 427045 , 486248 , 387265 , 435315 , 427472 , 464485 , 453428 , 516453 , 395452 , 435130 , 492813 , 504752 , 412539 , 394747 , 448919 , 473145 , 473605 , 414135 , 453438 , 563932 , 620100 , 566587 , 409421 , 443190 , 311092 , 494543 , 444674 , 391607 , 450765 , 434070 , 459658 , 395759 , 435275 , 514763 , 444836 , 423460 , 425112 , 467379 , 389821 , 419330 , 456234 , 456919 , 571799 , 479350 , 480378 , 523752 , 463207 , 570960 , 453033 , 573939 , 513769 , 461727 , 545526 , 469443 , 425555 , 428884 , 428143 , 467383 , 509819 , 492196 , 516930 , 605764 , 484249 , 546058 , 555182 , 611416 );
Copy
5
2.28 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
311092
382501
387265
389821
391607
394747
395452
395759
398849
399012
409421
412091
412539
414135
419330
423460
425112
425555
427045
427472
428143
428884
434070
435130
435275
435315
443190
444674
444836
448919
450765
453033
453428
453438
456234
456919
459658
461727
463207
464485
467379
467383
469443
473145
473605
479350
480378
484249
486248
492196
492813
494543
504752
509819
513769
514763
516453
516930
523752
545526
546058
555182
563932
566587
570960
571799
573939
605764
611416
620100
]
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 (311092 , 382501 , 387265 , 389821 , 391607 , 394747 , 395452 , 395759 , 398849 , 399012 , 409421 , 412091 , 412539 , 414135 , 419330 , 423460 , 425112 , 425555 , 427045 , 427472 , 428143 , 428884 , 434070 , 435130 , 435275 , 435315 , 443190 , 444674 , 444836 , 448919 , 450765 , 453033 , 453428 , 453438 , 456234 , 456919 , 459658 , 461727 , 463207 , 464485 , 467379 , 467383 , 469443 , 473145 , 473605 , 479350 , 480378 , 484249 , 486248 , 492196 , 492813 , 494543 , 504752 , 509819 , 513769 , 514763 , 516453 , 516930 , 523752 , 545526 , 546058 , 555182 , 563932 , 566587 , 570960 , 571799 , 573939 , 605764 , 611416 , 620100 );
Copy
6
87.74 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
311092
382501
387265
389821
391607
394747
395452
395759
398849
399012
409421
412091
412539
414135
419330
423460
425112
425555
427045
427472
428143
428884
434070
435130
435275
435315
443190
444674
444836
448919
450765
453033
453428
453438
456234
456919
459658
461727
463207
464485
467379
467383
469443
473145
473605
479350
480378
484249
486248
492196
492813
494543
504752
509819
513769
514763
516453
516930
523752
545526
546058
555182
563932
566587
570960
571799
573939
605764
611416
620100
]
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 (311092 , 382501 , 387265 , 389821 , 391607 , 394747 , 395452 , 395759 , 398849 , 399012 , 409421 , 412091 , 412539 , 414135 , 419330 , 423460 , 425112 , 425555 , 427045 , 427472 , 428143 , 428884 , 434070 , 435130 , 435275 , 435315 , 443190 , 444674 , 444836 , 448919 , 450765 , 453033 , 453428 , 453438 , 456234 , 456919 , 459658 , 461727 , 463207 , 464485 , 467379 , 467383 , 469443 , 473145 , 473605 , 479350 , 480378 , 484249 , 486248 , 492196 , 492813 , 494543 , 504752 , 509819 , 513769 , 514763 , 516453 , 516930 , 523752 , 545526 , 546058 , 555182 , 563932 , 566587 , 570960 , 571799 , 573939 , 605764 , 611416 , 620100 );
Copy