4
8.18 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
726236
570919
815129
759580
756497
676546
755427
772032
756493
815130
737522
756183
802547
811500
744524
632289
815056
815080
609121
775479
797680
765297
772051
814349
815121
673633
608338
775476
756648
488531
535374
800285
532264
519962
585630
478049
605450
818528
403236
419711
406435
815436
436719
623263
637721
471813
816803
668501
637746
643935
417736
468554
503407
646447
637650
550841
648252
623266
459877
431376
541923
596500
]
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 (726236 , 570919 , 815129 , 759580 , 756497 , 676546 , 755427 , 772032 , 756493 , 815130 , 737522 , 756183 , 802547 , 811500 , 744524 , 632289 , 815056 , 815080 , 609121 , 775479 , 797680 , 765297 , 772051 , 814349 , 815121 , 673633 , 608338 , 775476 , 756648 , 488531 , 535374 , 800285 , 532264 , 519962 , 585630 , 478049 , 605450 , 818528 , 403236 , 419711 , 406435 , 815436 , 436719 , 623263 , 637721 , 471813 , 816803 , 668501 , 637746 , 643935 , 417736 , 468554 , 503407 , 646447 , 637650 , 550841 , 648252 , 623266 , 459877 , 431376 , 541923 , 596500 );
Copy
5
2.74 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
403236
406435
417736
419711
431376
436719
459877
468554
471813
478049
488531
503407
519962
532264
535374
541923
550841
570919
585630
596500
605450
608338
609121
623263
623266
632289
637650
637721
637746
643935
646447
648252
668501
673633
676546
726236
737522
744524
755427
756183
756493
756497
756648
759580
765297
772032
772051
775476
775479
797680
800285
802547
811500
814349
815056
815080
815121
815129
815130
815436
816803
818528
]
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 (403236 , 406435 , 417736 , 419711 , 431376 , 436719 , 459877 , 468554 , 471813 , 478049 , 488531 , 503407 , 519962 , 532264 , 535374 , 541923 , 550841 , 570919 , 585630 , 596500 , 605450 , 608338 , 609121 , 623263 , 623266 , 632289 , 637650 , 637721 , 637746 , 643935 , 646447 , 648252 , 668501 , 673633 , 676546 , 726236 , 737522 , 744524 , 755427 , 756183 , 756493 , 756497 , 756648 , 759580 , 765297 , 772032 , 772051 , 775476 , 775479 , 797680 , 800285 , 802547 , 811500 , 814349 , 815056 , 815080 , 815121 , 815129 , 815130 , 815436 , 816803 , 818528 );
Copy
6
123.10 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
403236
406435
417736
419711
431376
436719
459877
468554
471813
478049
488531
503407
519962
532264
535374
541923
550841
570919
585630
596500
605450
608338
609121
623263
623266
632289
637650
637721
637746
643935
646447
648252
668501
673633
676546
726236
737522
744524
755427
756183
756493
756497
756648
759580
765297
772032
772051
775476
775479
797680
800285
802547
811500
814349
815056
815080
815121
815129
815130
815436
816803
818528
]
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 (403236 , 406435 , 417736 , 419711 , 431376 , 436719 , 459877 , 468554 , 471813 , 478049 , 488531 , 503407 , 519962 , 532264 , 535374 , 541923 , 550841 , 570919 , 585630 , 596500 , 605450 , 608338 , 609121 , 623263 , 623266 , 632289 , 637650 , 637721 , 637746 , 643935 , 646447 , 648252 , 668501 , 673633 , 676546 , 726236 , 737522 , 744524 , 755427 , 756183 , 756493 , 756497 , 756648 , 759580 , 765297 , 772032 , 772051 , 775476 , 775479 , 797680 , 800285 , 802547 , 811500 , 814349 , 815056 , 815080 , 815121 , 815129 , 815130 , 815436 , 816803 , 818528 );
Copy