3
8.82 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
610437
622916
551570
604173
764354
522381
394138
572891
623390
584927
604162
741750
391833
461986
795546
539524
509366
462561
453651
532114
705890
517952
522399
498300
502197
591876
604191
503975
551473
578741
575006
575004
456384
552522
532112
711266
807963
543307
632172
393886
522069
592524
604182
632304
721609
464962
544522
458431
507188
464149
528331
509565
794846
509862
599997
483677
537167
577074
484358
417196
520660
601892
477982
454224
421603
508882
466481
409259
547932
507596
]
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 (610437 , 622916 , 551570 , 604173 , 764354 , 522381 , 394138 , 572891 , 623390 , 584927 , 604162 , 741750 , 391833 , 461986 , 795546 , 539524 , 509366 , 462561 , 453651 , 532114 , 705890 , 517952 , 522399 , 498300 , 502197 , 591876 , 604191 , 503975 , 551473 , 578741 , 575006 , 575004 , 456384 , 552522 , 532112 , 711266 , 807963 , 543307 , 632172 , 393886 , 522069 , 592524 , 604182 , 632304 , 721609 , 464962 , 544522 , 458431 , 507188 , 464149 , 528331 , 509565 , 794846 , 509862 , 599997 , 483677 , 537167 , 577074 , 484358 , 417196 , 520660 , 601892 , 477982 , 454224 , 421603 , 508882 , 466481 , 409259 , 547932 , 507596 );
Copy
4
2.50 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
391833
393886
394138
409259
417196
421603
453651
454224
456384
458431
461986
462561
464149
464962
466481
477982
483677
484358
498300
502197
503975
507188
507596
508882
509366
509565
509862
517952
520660
522069
522381
522399
528331
532112
532114
537167
539524
543307
544522
547932
551473
551570
552522
572891
575004
575006
577074
578741
584927
591876
592524
599997
601892
604162
604173
604182
604191
610437
622916
623390
632172
632304
705890
711266
721609
741750
764354
794846
795546
807963
]
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 (391833 , 393886 , 394138 , 409259 , 417196 , 421603 , 453651 , 454224 , 456384 , 458431 , 461986 , 462561 , 464149 , 464962 , 466481 , 477982 , 483677 , 484358 , 498300 , 502197 , 503975 , 507188 , 507596 , 508882 , 509366 , 509565 , 509862 , 517952 , 520660 , 522069 , 522381 , 522399 , 528331 , 532112 , 532114 , 537167 , 539524 , 543307 , 544522 , 547932 , 551473 , 551570 , 552522 , 572891 , 575004 , 575006 , 577074 , 578741 , 584927 , 591876 , 592524 , 599997 , 601892 , 604162 , 604173 , 604182 , 604191 , 610437 , 622916 , 623390 , 632172 , 632304 , 705890 , 711266 , 721609 , 741750 , 764354 , 794846 , 795546 , 807963 );
Copy
5
108.42 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
391833
393886
394138
409259
417196
421603
453651
454224
456384
458431
461986
462561
464149
464962
466481
477982
483677
484358
498300
502197
503975
507188
507596
508882
509366
509565
509862
517952
520660
522069
522381
522399
528331
532112
532114
537167
539524
543307
544522
547932
551473
551570
552522
572891
575004
575006
577074
578741
584927
591876
592524
599997
601892
604162
604173
604182
604191
610437
622916
623390
632172
632304
705890
711266
721609
741750
764354
794846
795546
807963
]
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 (391833 , 393886 , 394138 , 409259 , 417196 , 421603 , 453651 , 454224 , 456384 , 458431 , 461986 , 462561 , 464149 , 464962 , 466481 , 477982 , 483677 , 484358 , 498300 , 502197 , 503975 , 507188 , 507596 , 508882 , 509366 , 509565 , 509862 , 517952 , 520660 , 522069 , 522381 , 522399 , 528331 , 532112 , 532114 , 537167 , 539524 , 543307 , 544522 , 547932 , 551473 , 551570 , 552522 , 572891 , 575004 , 575006 , 577074 , 578741 , 584927 , 591876 , 592524 , 599997 , 601892 , 604162 , 604173 , 604182 , 604191 , 610437 , 622916 , 623390 , 632172 , 632304 , 705890 , 711266 , 721609 , 741750 , 764354 , 794846 , 795546 , 807963 );
Copy