3
11.11 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
623120
600637
661245
535867
692728
806289
659289
649442
612206
717066
647000
795543
800225
603219
732084
704875
383173
713695
742015
661252
543851
757611
530143
659270
633447
436547
691860
630801
609858
623519
628375
506812
497550
661261
659322
680130
635210
632256
680138
528262
680111
714119
661269
491725
625736
619457
680154
549256
807386
560198
716043
680116
680170
680189
417631
575716
680182
414344
637034
597235
540339
597262
543858
628380
]
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 (623120 , 600637 , 661245 , 535867 , 692728 , 806289 , 659289 , 649442 , 612206 , 717066 , 647000 , 795543 , 800225 , 603219 , 732084 , 704875 , 383173 , 713695 , 742015 , 661252 , 543851 , 757611 , 530143 , 659270 , 633447 , 436547 , 691860 , 630801 , 609858 , 623519 , 628375 , 506812 , 497550 , 661261 , 659322 , 680130 , 635210 , 632256 , 680138 , 528262 , 680111 , 714119 , 661269 , 491725 , 625736 , 619457 , 680154 , 549256 , 807386 , 560198 , 716043 , 680116 , 680170 , 680189 , 417631 , 575716 , 680182 , 414344 , 637034 , 597235 , 540339 , 597262 , 543858 , 628380 );
Copy
4
3.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
383173
414344
417631
436547
491725
497550
506812
528262
530143
535867
540339
543851
543858
549256
560198
575716
597235
597262
600637
603219
609858
612206
619457
623120
623519
625736
628375
628380
630801
632256
633447
635210
637034
647000
649442
659270
659289
659322
661245
661252
661261
661269
680111
680116
680130
680138
680154
680170
680182
680189
691860
692728
704875
713695
714119
716043
717066
732084
742015
757611
795543
800225
806289
807386
]
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 (383173 , 414344 , 417631 , 436547 , 491725 , 497550 , 506812 , 528262 , 530143 , 535867 , 540339 , 543851 , 543858 , 549256 , 560198 , 575716 , 597235 , 597262 , 600637 , 603219 , 609858 , 612206 , 619457 , 623120 , 623519 , 625736 , 628375 , 628380 , 630801 , 632256 , 633447 , 635210 , 637034 , 647000 , 649442 , 659270 , 659289 , 659322 , 661245 , 661252 , 661261 , 661269 , 680111 , 680116 , 680130 , 680138 , 680154 , 680170 , 680182 , 680189 , 691860 , 692728 , 704875 , 713695 , 714119 , 716043 , 717066 , 732084 , 742015 , 757611 , 795543 , 800225 , 806289 , 807386 );
Copy
5
517.78 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
383173
414344
417631
436547
491725
497550
506812
528262
530143
535867
540339
543851
543858
549256
560198
575716
597235
597262
600637
603219
609858
612206
619457
623120
623519
625736
628375
628380
630801
632256
633447
635210
637034
647000
649442
659270
659289
659322
661245
661252
661261
661269
680111
680116
680130
680138
680154
680170
680182
680189
691860
692728
704875
713695
714119
716043
717066
732084
742015
757611
795543
800225
806289
807386
]
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 (383173 , 414344 , 417631 , 436547 , 491725 , 497550 , 506812 , 528262 , 530143 , 535867 , 540339 , 543851 , 543858 , 549256 , 560198 , 575716 , 597235 , 597262 , 600637 , 603219 , 609858 , 612206 , 619457 , 623120 , 623519 , 625736 , 628375 , 628380 , 630801 , 632256 , 633447 , 635210 , 637034 , 647000 , 649442 , 659270 , 659289 , 659322 , 661245 , 661252 , 661261 , 661269 , 680111 , 680116 , 680130 , 680138 , 680154 , 680170 , 680182 , 680189 , 691860 , 692728 , 704875 , 713695 , 714119 , 716043 , 717066 , 732084 , 742015 , 757611 , 795543 , 800225 , 806289 , 807386 );
Copy