3
10.26 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
804639
568264
429905
419816
451336
523761
812054
810484
621759
456226
397882
411255
420816
670832
6866
400894
516626
419452
510549
527914
495566
383238
430347
494495
678950
752670
398684
460384
463687
519313
414119
468269
500789
680816
708517
661915
596632
592187
618619
416599
452885
471654
495507
483523
443516
447600
618687
806668
438052
444921
429608
464971
477506
554235
597750
596857
469223
471148
541839
632169
414042
426399
593292
]
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 (804639 , 568264 , 429905 , 419816 , 451336 , 523761 , 812054 , 810484 , 621759 , 456226 , 397882 , 411255 , 420816 , 670832 , 6866 , 400894 , 516626 , 419452 , 510549 , 527914 , 495566 , 383238 , 430347 , 494495 , 678950 , 752670 , 398684 , 460384 , 463687 , 519313 , 414119 , 468269 , 500789 , 680816 , 708517 , 661915 , 596632 , 592187 , 618619 , 416599 , 452885 , 471654 , 495507 , 483523 , 443516 , 447600 , 618687 , 806668 , 438052 , 444921 , 429608 , 464971 , 477506 , 554235 , 597750 , 596857 , 469223 , 471148 , 541839 , 632169 , 414042 , 426399 , 593292 );
Copy
4
2.83 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
6866
383238
397882
398684
400894
411255
414042
414119
416599
419452
419816
420816
426399
429608
429905
430347
438052
443516
444921
447600
451336
452885
456226
460384
463687
464971
468269
469223
471148
471654
477506
483523
494495
495507
495566
500789
510549
516626
519313
523761
527914
541839
554235
568264
592187
593292
596632
596857
597750
618619
618687
621759
632169
661915
670832
678950
680816
708517
752670
804639
806668
810484
812054
]
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 (6866 , 383238 , 397882 , 398684 , 400894 , 411255 , 414042 , 414119 , 416599 , 419452 , 419816 , 420816 , 426399 , 429608 , 429905 , 430347 , 438052 , 443516 , 444921 , 447600 , 451336 , 452885 , 456226 , 460384 , 463687 , 464971 , 468269 , 469223 , 471148 , 471654 , 477506 , 483523 , 494495 , 495507 , 495566 , 500789 , 510549 , 516626 , 519313 , 523761 , 527914 , 541839 , 554235 , 568264 , 592187 , 593292 , 596632 , 596857 , 597750 , 618619 , 618687 , 621759 , 632169 , 661915 , 670832 , 678950 , 680816 , 708517 , 752670 , 804639 , 806668 , 810484 , 812054 );
Copy
5
103.44 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
6866
383238
397882
398684
400894
411255
414042
414119
416599
419452
419816
420816
426399
429608
429905
430347
438052
443516
444921
447600
451336
452885
456226
460384
463687
464971
468269
469223
471148
471654
477506
483523
494495
495507
495566
500789
510549
516626
519313
523761
527914
541839
554235
568264
592187
593292
596632
596857
597750
618619
618687
621759
632169
661915
670832
678950
680816
708517
752670
804639
806668
810484
812054
]
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 (6866 , 383238 , 397882 , 398684 , 400894 , 411255 , 414042 , 414119 , 416599 , 419452 , 419816 , 420816 , 426399 , 429608 , 429905 , 430347 , 438052 , 443516 , 444921 , 447600 , 451336 , 452885 , 456226 , 460384 , 463687 , 464971 , 468269 , 469223 , 471148 , 471654 , 477506 , 483523 , 494495 , 495507 , 495566 , 500789 , 510549 , 516626 , 519313 , 523761 , 527914 , 541839 , 554235 , 568264 , 592187 , 593292 , 596632 , 596857 , 597750 , 618619 , 618687 , 621759 , 632169 , 661915 , 670832 , 678950 , 680816 , 708517 , 752670 , 804639 , 806668 , 810484 , 812054 );
Copy