3
11.72 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
413161
427537
428653
584737
610284
370829
392576
417629
260940
185464
397880
422235
471814
239555
409222
573304
604094
604465
600390
630916
389829
407662
420762
416382
187072
389519
422338
523404
771380
605545
431832
425966
391400
395614
405181
793410
814142
797768
735436
384809
58584
712891
420925
616188
777191
723731
773438
601795
735502
580280
583982
419370
489328
818283
576289
630215
549968
641642
522868
522907
540984
523863
544461
513603
509879
616350
509100
]
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 (413161 , 427537 , 428653 , 584737 , 610284 , 370829 , 392576 , 417629 , 260940 , 185464 , 397880 , 422235 , 471814 , 239555 , 409222 , 573304 , 604094 , 604465 , 600390 , 630916 , 389829 , 407662 , 420762 , 416382 , 187072 , 389519 , 422338 , 523404 , 771380 , 605545 , 431832 , 425966 , 391400 , 395614 , 405181 , 793410 , 814142 , 797768 , 735436 , 384809 , 58584 , 712891 , 420925 , 616188 , 777191 , 723731 , 773438 , 601795 , 735502 , 580280 , 583982 , 419370 , 489328 , 818283 , 576289 , 630215 , 549968 , 641642 , 522868 , 522907 , 540984 , 523863 , 544461 , 513603 , 509879 , 616350 , 509100 );
Copy
4
2.80 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
58584
185464
187072
239555
260940
370829
384809
389519
389829
391400
392576
395614
397880
405181
407662
409222
413161
416382
417629
419370
420762
420925
422235
422338
425966
427537
428653
431832
471814
489328
509100
509879
513603
522868
522907
523404
523863
540984
544461
549968
573304
576289
580280
583982
584737
600390
601795
604094
604465
605545
610284
616188
616350
630215
630916
641642
712891
723731
735436
735502
771380
773438
777191
793410
797768
814142
818283
]
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 (58584 , 185464 , 187072 , 239555 , 260940 , 370829 , 384809 , 389519 , 389829 , 391400 , 392576 , 395614 , 397880 , 405181 , 407662 , 409222 , 413161 , 416382 , 417629 , 419370 , 420762 , 420925 , 422235 , 422338 , 425966 , 427537 , 428653 , 431832 , 471814 , 489328 , 509100 , 509879 , 513603 , 522868 , 522907 , 523404 , 523863 , 540984 , 544461 , 549968 , 573304 , 576289 , 580280 , 583982 , 584737 , 600390 , 601795 , 604094 , 604465 , 605545 , 610284 , 616188 , 616350 , 630215 , 630916 , 641642 , 712891 , 723731 , 735436 , 735502 , 771380 , 773438 , 777191 , 793410 , 797768 , 814142 , 818283 );
Copy
5
78.46 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
58584
185464
187072
239555
260940
370829
384809
389519
389829
391400
392576
395614
397880
405181
407662
409222
413161
416382
417629
419370
420762
420925
422235
422338
425966
427537
428653
431832
471814
489328
509100
509879
513603
522868
522907
523404
523863
540984
544461
549968
573304
576289
580280
583982
584737
600390
601795
604094
604465
605545
610284
616188
616350
630215
630916
641642
712891
723731
735436
735502
771380
773438
777191
793410
797768
814142
818283
]
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 (58584 , 185464 , 187072 , 239555 , 260940 , 370829 , 384809 , 389519 , 389829 , 391400 , 392576 , 395614 , 397880 , 405181 , 407662 , 409222 , 413161 , 416382 , 417629 , 419370 , 420762 , 420925 , 422235 , 422338 , 425966 , 427537 , 428653 , 431832 , 471814 , 489328 , 509100 , 509879 , 513603 , 522868 , 522907 , 523404 , 523863 , 540984 , 544461 , 549968 , 573304 , 576289 , 580280 , 583982 , 584737 , 600390 , 601795 , 604094 , 604465 , 605545 , 610284 , 616188 , 616350 , 630215 , 630916 , 641642 , 712891 , 723731 , 735436 , 735502 , 771380 , 773438 , 777191 , 793410 , 797768 , 814142 , 818283 );
Copy