4
9.64 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
716417
807857
757290
722167
740541
728148
772872
730318
465405
823862
753172
626325
801993
528301
621289
756349
443264
663754
705101
751252
702311
805259
726123
576771
730507
693003
556704
621457
628515
629665
785299
796723
469620
434936
410428
516490
622777
565011
803208
758919
499964
499995
510903
702305
433072
584555
791589
516496
559239
800611
565013
492338
522626
516486
813987
615014
457590
499987
497269
584779
509983
522107
553637
464366
486589
431730
504908
786147
493402
621160
603826
472559
500566
609795
490063
]
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 (716417 , 807857 , 757290 , 722167 , 740541 , 728148 , 772872 , 730318 , 465405 , 823862 , 753172 , 626325 , 801993 , 528301 , 621289 , 756349 , 443264 , 663754 , 705101 , 751252 , 702311 , 805259 , 726123 , 576771 , 730507 , 693003 , 556704 , 621457 , 628515 , 629665 , 785299 , 796723 , 469620 , 434936 , 410428 , 516490 , 622777 , 565011 , 803208 , 758919 , 499964 , 499995 , 510903 , 702305 , 433072 , 584555 , 791589 , 516496 , 559239 , 800611 , 565013 , 492338 , 522626 , 516486 , 813987 , 615014 , 457590 , 499987 , 497269 , 584779 , 509983 , 522107 , 553637 , 464366 , 486589 , 431730 , 504908 , 786147 , 493402 , 621160 , 603826 , 472559 , 500566 , 609795 , 490063 );
Copy
5
2.37 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
410428
431730
433072
434936
443264
457590
464366
465405
469620
472559
486589
490063
492338
493402
497269
499964
499987
499995
500566
504908
509983
510903
516486
516490
516496
522107
522626
528301
553637
556704
559239
565011
565013
576771
584555
584779
603826
609795
615014
621160
621289
621457
622777
626325
628515
629665
663754
693003
702305
702311
705101
716417
722167
726123
728148
730318
730507
740541
751252
753172
756349
757290
758919
772872
785299
786147
791589
796723
800611
801993
803208
805259
807857
813987
823862
]
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 (410428 , 431730 , 433072 , 434936 , 443264 , 457590 , 464366 , 465405 , 469620 , 472559 , 486589 , 490063 , 492338 , 493402 , 497269 , 499964 , 499987 , 499995 , 500566 , 504908 , 509983 , 510903 , 516486 , 516490 , 516496 , 522107 , 522626 , 528301 , 553637 , 556704 , 559239 , 565011 , 565013 , 576771 , 584555 , 584779 , 603826 , 609795 , 615014 , 621160 , 621289 , 621457 , 622777 , 626325 , 628515 , 629665 , 663754 , 693003 , 702305 , 702311 , 705101 , 716417 , 722167 , 726123 , 728148 , 730318 , 730507 , 740541 , 751252 , 753172 , 756349 , 757290 , 758919 , 772872 , 785299 , 786147 , 791589 , 796723 , 800611 , 801993 , 803208 , 805259 , 807857 , 813987 , 823862 );
Copy
6
119.27 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
410428
431730
433072
434936
443264
457590
464366
465405
469620
472559
486589
490063
492338
493402
497269
499964
499987
499995
500566
504908
509983
510903
516486
516490
516496
522107
522626
528301
553637
556704
559239
565011
565013
576771
584555
584779
603826
609795
615014
621160
621289
621457
622777
626325
628515
629665
663754
693003
702305
702311
705101
716417
722167
726123
728148
730318
730507
740541
751252
753172
756349
757290
758919
772872
785299
786147
791589
796723
800611
801993
803208
805259
807857
813987
823862
]
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 (410428 , 431730 , 433072 , 434936 , 443264 , 457590 , 464366 , 465405 , 469620 , 472559 , 486589 , 490063 , 492338 , 493402 , 497269 , 499964 , 499987 , 499995 , 500566 , 504908 , 509983 , 510903 , 516486 , 516490 , 516496 , 522107 , 522626 , 528301 , 553637 , 556704 , 559239 , 565011 , 565013 , 576771 , 584555 , 584779 , 603826 , 609795 , 615014 , 621160 , 621289 , 621457 , 622777 , 626325 , 628515 , 629665 , 663754 , 693003 , 702305 , 702311 , 705101 , 716417 , 722167 , 726123 , 728148 , 730318 , 730507 , 740541 , 751252 , 753172 , 756349 , 757290 , 758919 , 772872 , 785299 , 786147 , 791589 , 796723 , 800611 , 801993 , 803208 , 805259 , 807857 , 813987 , 823862 );
Copy