3
18.35 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
610635
544429
828397
400964
736263
601831
458010
401956
731820
815318
407404
401222
825116
474538
748228
557150
554527
807465
401959
816073
563903
730071
398027
407554
474549
405850
407721
732068
395711
520020
517687
563915
470987
458006
477099
550764
462155
395573
468042
807191
471881
383943
411790
478811
813244
471406
483366
807363
731678
425582
782020
482304
462485
409209
446106
420270
469072
420223
534394
513137
395571
456609
536370
492269
519034
382071
626336
519988
489692
534377
428103
428022
626337
489950
]
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 (610635 , 544429 , 828397 , 400964 , 736263 , 601831 , 458010 , 401956 , 731820 , 815318 , 407404 , 401222 , 825116 , 474538 , 748228 , 557150 , 554527 , 807465 , 401959 , 816073 , 563903 , 730071 , 398027 , 407554 , 474549 , 405850 , 407721 , 732068 , 395711 , 520020 , 517687 , 563915 , 470987 , 458006 , 477099 , 550764 , 462155 , 395573 , 468042 , 807191 , 471881 , 383943 , 411790 , 478811 , 813244 , 471406 , 483366 , 807363 , 731678 , 425582 , 782020 , 482304 , 462485 , 409209 , 446106 , 420270 , 469072 , 420223 , 534394 , 513137 , 395571 , 456609 , 536370 , 492269 , 519034 , 382071 , 626336 , 519988 , 489692 , 534377 , 428103 , 428022 , 626337 , 489950 );
Copy
4
2.15 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
382071
383943
395571
395573
395711
398027
400964
401222
401956
401959
405850
407404
407554
407721
409209
411790
420223
420270
425582
428022
428103
446106
456609
458006
458010
462155
462485
468042
469072
470987
471406
471881
474538
474549
477099
478811
482304
483366
489692
489950
492269
513137
517687
519034
519988
520020
534377
534394
536370
544429
550764
554527
557150
563903
563915
601831
610635
626336
626337
730071
731678
731820
732068
736263
748228
782020
807191
807363
807465
813244
815318
816073
825116
828397
]
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 (382071 , 383943 , 395571 , 395573 , 395711 , 398027 , 400964 , 401222 , 401956 , 401959 , 405850 , 407404 , 407554 , 407721 , 409209 , 411790 , 420223 , 420270 , 425582 , 428022 , 428103 , 446106 , 456609 , 458006 , 458010 , 462155 , 462485 , 468042 , 469072 , 470987 , 471406 , 471881 , 474538 , 474549 , 477099 , 478811 , 482304 , 483366 , 489692 , 489950 , 492269 , 513137 , 517687 , 519034 , 519988 , 520020 , 534377 , 534394 , 536370 , 544429 , 550764 , 554527 , 557150 , 563903 , 563915 , 601831 , 610635 , 626336 , 626337 , 730071 , 731678 , 731820 , 732068 , 736263 , 748228 , 782020 , 807191 , 807363 , 807465 , 813244 , 815318 , 816073 , 825116 , 828397 );
Copy
5
103.06 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
382071
383943
395571
395573
395711
398027
400964
401222
401956
401959
405850
407404
407554
407721
409209
411790
420223
420270
425582
428022
428103
446106
456609
458006
458010
462155
462485
468042
469072
470987
471406
471881
474538
474549
477099
478811
482304
483366
489692
489950
492269
513137
517687
519034
519988
520020
534377
534394
536370
544429
550764
554527
557150
563903
563915
601831
610635
626336
626337
730071
731678
731820
732068
736263
748228
782020
807191
807363
807465
813244
815318
816073
825116
828397
]
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 (382071 , 383943 , 395571 , 395573 , 395711 , 398027 , 400964 , 401222 , 401956 , 401959 , 405850 , 407404 , 407554 , 407721 , 409209 , 411790 , 420223 , 420270 , 425582 , 428022 , 428103 , 446106 , 456609 , 458006 , 458010 , 462155 , 462485 , 468042 , 469072 , 470987 , 471406 , 471881 , 474538 , 474549 , 477099 , 478811 , 482304 , 483366 , 489692 , 489950 , 492269 , 513137 , 517687 , 519034 , 519988 , 520020 , 534377 , 534394 , 536370 , 544429 , 550764 , 554527 , 557150 , 563903 , 563915 , 601831 , 610635 , 626336 , 626337 , 730071 , 731678 , 731820 , 732068 , 736263 , 748228 , 782020 , 807191 , 807363 , 807465 , 813244 , 815318 , 816073 , 825116 , 828397 );
Copy