3
13.54 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
397662
416722
424253
452625
465161
447562
507668
482913
419300
423023
443232
416596
426434
430704
429729
442370
423283
433330
448063
451883
462922
447151
453547
456736
464097
477025
488359
471747
678032
635219
441005
416663
425452
422380
477246
406685
416009
435008
415005
415957
439424
439715
441616
435078
451040
573429
420530
447955
480393
434829
500424
433179
445681
498404
479016
677674
573387
593855
430436
424047
457434
478544
449881
436186
434443
448845
678095
]
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 (397662 , 416722 , 424253 , 452625 , 465161 , 447562 , 507668 , 482913 , 419300 , 423023 , 443232 , 416596 , 426434 , 430704 , 429729 , 442370 , 423283 , 433330 , 448063 , 451883 , 462922 , 447151 , 453547 , 456736 , 464097 , 477025 , 488359 , 471747 , 678032 , 635219 , 441005 , 416663 , 425452 , 422380 , 477246 , 406685 , 416009 , 435008 , 415005 , 415957 , 439424 , 439715 , 441616 , 435078 , 451040 , 573429 , 420530 , 447955 , 480393 , 434829 , 500424 , 433179 , 445681 , 498404 , 479016 , 677674 , 573387 , 593855 , 430436 , 424047 , 457434 , 478544 , 449881 , 436186 , 434443 , 448845 , 678095 );
Copy
4
2.70 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
397662
406685
415005
415957
416009
416596
416663
416722
419300
420530
422380
423023
423283
424047
424253
425452
426434
429729
430436
430704
433179
433330
434443
434829
435008
435078
436186
439424
439715
441005
441616
442370
443232
445681
447151
447562
447955
448063
448845
449881
451040
451883
452625
453547
456736
457434
462922
464097
465161
471747
477025
477246
478544
479016
480393
482913
488359
498404
500424
507668
573387
573429
593855
635219
677674
678032
678095
]
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 (397662 , 406685 , 415005 , 415957 , 416009 , 416596 , 416663 , 416722 , 419300 , 420530 , 422380 , 423023 , 423283 , 424047 , 424253 , 425452 , 426434 , 429729 , 430436 , 430704 , 433179 , 433330 , 434443 , 434829 , 435008 , 435078 , 436186 , 439424 , 439715 , 441005 , 441616 , 442370 , 443232 , 445681 , 447151 , 447562 , 447955 , 448063 , 448845 , 449881 , 451040 , 451883 , 452625 , 453547 , 456736 , 457434 , 462922 , 464097 , 465161 , 471747 , 477025 , 477246 , 478544 , 479016 , 480393 , 482913 , 488359 , 498404 , 500424 , 507668 , 573387 , 573429 , 593855 , 635219 , 677674 , 678032 , 678095 );
Copy
5
85.22 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
397662
406685
415005
415957
416009
416596
416663
416722
419300
420530
422380
423023
423283
424047
424253
425452
426434
429729
430436
430704
433179
433330
434443
434829
435008
435078
436186
439424
439715
441005
441616
442370
443232
445681
447151
447562
447955
448063
448845
449881
451040
451883
452625
453547
456736
457434
462922
464097
465161
471747
477025
477246
478544
479016
480393
482913
488359
498404
500424
507668
573387
573429
593855
635219
677674
678032
678095
]
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 (397662 , 406685 , 415005 , 415957 , 416009 , 416596 , 416663 , 416722 , 419300 , 420530 , 422380 , 423023 , 423283 , 424047 , 424253 , 425452 , 426434 , 429729 , 430436 , 430704 , 433179 , 433330 , 434443 , 434829 , 435008 , 435078 , 436186 , 439424 , 439715 , 441005 , 441616 , 442370 , 443232 , 445681 , 447151 , 447562 , 447955 , 448063 , 448845 , 449881 , 451040 , 451883 , 452625 , 453547 , 456736 , 457434 , 462922 , 464097 , 465161 , 471747 , 477025 , 477246 , 478544 , 479016 , 480393 , 482913 , 488359 , 498404 , 500424 , 507668 , 573387 , 573429 , 593855 , 635219 , 677674 , 678032 , 678095 );
Copy