3
9.67 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
663407
666757
665184
668899
666827
668185
664284
664295
665374
665489
663390
665832
681170
663891
667558
664815
669747
774591
618675
663405
665351
667523
668869
667526
667672
387279
663410
666844
667566
664817
665432
667212
667829
775942
740125
493972
392006
664321
667900
675524
665493
666849
667614
666772
667649
668898
670482
625150
782396
748249
740138
665366
666159
665461
667901
476309
663922
663926
665292
665496
663914
455034
466722
663399
663864
663984
451478
476293
617659
466241
466014
]
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 (663407 , 666757 , 665184 , 668899 , 666827 , 668185 , 664284 , 664295 , 665374 , 665489 , 663390 , 665832 , 681170 , 663891 , 667558 , 664815 , 669747 , 774591 , 618675 , 663405 , 665351 , 667523 , 668869 , 667526 , 667672 , 387279 , 663410 , 666844 , 667566 , 664817 , 665432 , 667212 , 667829 , 775942 , 740125 , 493972 , 392006 , 664321 , 667900 , 675524 , 665493 , 666849 , 667614 , 666772 , 667649 , 668898 , 670482 , 625150 , 782396 , 748249 , 740138 , 665366 , 666159 , 665461 , 667901 , 476309 , 663922 , 663926 , 665292 , 665496 , 663914 , 455034 , 466722 , 663399 , 663864 , 663984 , 451478 , 476293 , 617659 , 466241 , 466014 );
Copy
4
2.98 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
387279
392006
451478
455034
466014
466241
466722
476293
476309
493972
617659
618675
625150
663390
663399
663405
663407
663410
663864
663891
663914
663922
663926
663984
664284
664295
664321
664815
664817
665184
665292
665351
665366
665374
665432
665461
665489
665493
665496
665832
666159
666757
666772
666844
666849
667212
667523
667526
667558
667566
667614
667649
667672
667829
667900
667901
668185
668869
668898
668899
669747
670482
675524
681170
740125
740138
748249
774591
775942
782396
]
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 (387279 , 392006 , 451478 , 455034 , 466014 , 466241 , 466722 , 476293 , 476309 , 493972 , 617659 , 618675 , 625150 , 663390 , 663399 , 663405 , 663407 , 663410 , 663864 , 663891 , 663914 , 663922 , 663926 , 663984 , 664284 , 664295 , 664321 , 664815 , 664817 , 665184 , 665292 , 665351 , 665366 , 665374 , 665432 , 665461 , 665489 , 665493 , 665496 , 665832 , 666159 , 666757 , 666772 , 666844 , 666849 , 667212 , 667523 , 667526 , 667558 , 667566 , 667614 , 667649 , 667672 , 667829 , 667900 , 667901 , 668185 , 668869 , 668898 , 668899 , 669747 , 670482 , 675524 , 681170 , 740125 , 740138 , 748249 , 774591 , 775942 , 782396 );
Copy
5
109.82 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
387279
392006
451478
455034
466014
466241
466722
476293
476309
493972
617659
618675
625150
663390
663399
663405
663407
663410
663864
663891
663914
663922
663926
663984
664284
664295
664321
664815
664817
665184
665292
665351
665366
665374
665432
665461
665489
665493
665496
665832
666159
666757
666772
666844
666849
667212
667523
667526
667558
667566
667614
667649
667672
667829
667900
667901
668185
668869
668898
668899
669747
670482
675524
681170
740125
740138
748249
774591
775942
782396
]
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 (387279 , 392006 , 451478 , 455034 , 466014 , 466241 , 466722 , 476293 , 476309 , 493972 , 617659 , 618675 , 625150 , 663390 , 663399 , 663405 , 663407 , 663410 , 663864 , 663891 , 663914 , 663922 , 663926 , 663984 , 664284 , 664295 , 664321 , 664815 , 664817 , 665184 , 665292 , 665351 , 665366 , 665374 , 665432 , 665461 , 665489 , 665493 , 665496 , 665832 , 666159 , 666757 , 666772 , 666844 , 666849 , 667212 , 667523 , 667526 , 667558 , 667566 , 667614 , 667649 , 667672 , 667829 , 667900 , 667901 , 668185 , 668869 , 668898 , 668899 , 669747 , 670482 , 675524 , 681170 , 740125 , 740138 , 748249 , 774591 , 775942 , 782396 );
Copy