4
17.58 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
455901
399163
418122
432296
480351
414116
418144
405683
418130
429602
435343
434345
434314
500789
664441
806384
782892
807619
434318
475406
439112
466443
518915
499914
509978
518885
426259
475407
447318
565308
467877
434307
398064
468128
450357
418102
439171
433002
434337
428280
510546
588697
430355
434365
434286
434371
439424
458761
541839
457951
523885
482704
476773
475414
458770
434374
430374
434364
649949
410683
421366
595165
574619
428959
626617
494492
]
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 (455901 , 399163 , 418122 , 432296 , 480351 , 414116 , 418144 , 405683 , 418130 , 429602 , 435343 , 434345 , 434314 , 500789 , 664441 , 806384 , 782892 , 807619 , 434318 , 475406 , 439112 , 466443 , 518915 , 499914 , 509978 , 518885 , 426259 , 475407 , 447318 , 565308 , 467877 , 434307 , 398064 , 468128 , 450357 , 418102 , 439171 , 433002 , 434337 , 428280 , 510546 , 588697 , 430355 , 434365 , 434286 , 434371 , 439424 , 458761 , 541839 , 457951 , 523885 , 482704 , 476773 , 475414 , 458770 , 434374 , 430374 , 434364 , 649949 , 410683 , 421366 , 595165 , 574619 , 428959 , 626617 , 494492 );
Copy
5
2.61 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
398064
399163
405683
410683
414116
418102
418122
418130
418144
421366
426259
428280
428959
429602
430355
430374
432296
433002
434286
434307
434314
434318
434337
434345
434364
434365
434371
434374
435343
439112
439171
439424
447318
450357
455901
457951
458761
458770
466443
467877
468128
475406
475407
475414
476773
480351
482704
494492
499914
500789
509978
510546
518885
518915
523885
541839
565308
574619
588697
595165
626617
649949
664441
782892
806384
807619
]
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 (398064 , 399163 , 405683 , 410683 , 414116 , 418102 , 418122 , 418130 , 418144 , 421366 , 426259 , 428280 , 428959 , 429602 , 430355 , 430374 , 432296 , 433002 , 434286 , 434307 , 434314 , 434318 , 434337 , 434345 , 434364 , 434365 , 434371 , 434374 , 435343 , 439112 , 439171 , 439424 , 447318 , 450357 , 455901 , 457951 , 458761 , 458770 , 466443 , 467877 , 468128 , 475406 , 475407 , 475414 , 476773 , 480351 , 482704 , 494492 , 499914 , 500789 , 509978 , 510546 , 518885 , 518915 , 523885 , 541839 , 565308 , 574619 , 588697 , 595165 , 626617 , 649949 , 664441 , 782892 , 806384 , 807619 );
Copy
6
122.58 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
398064
399163
405683
410683
414116
418102
418122
418130
418144
421366
426259
428280
428959
429602
430355
430374
432296
433002
434286
434307
434314
434318
434337
434345
434364
434365
434371
434374
435343
439112
439171
439424
447318
450357
455901
457951
458761
458770
466443
467877
468128
475406
475407
475414
476773
480351
482704
494492
499914
500789
509978
510546
518885
518915
523885
541839
565308
574619
588697
595165
626617
649949
664441
782892
806384
807619
]
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 (398064 , 399163 , 405683 , 410683 , 414116 , 418102 , 418122 , 418130 , 418144 , 421366 , 426259 , 428280 , 428959 , 429602 , 430355 , 430374 , 432296 , 433002 , 434286 , 434307 , 434314 , 434318 , 434337 , 434345 , 434364 , 434365 , 434371 , 434374 , 435343 , 439112 , 439171 , 439424 , 447318 , 450357 , 455901 , 457951 , 458761 , 458770 , 466443 , 467877 , 468128 , 475406 , 475407 , 475414 , 476773 , 480351 , 482704 , 494492 , 499914 , 500789 , 509978 , 510546 , 518885 , 518915 , 523885 , 541839 , 565308 , 574619 , 588697 , 595165 , 626617 , 649949 , 664441 , 782892 , 806384 , 807619 );
Copy