3
11.68 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
384070
572891
537710
462507
458836
538560
650369
542812
584927
741750
543464
482198
576724
542807
538586
430245
539524
543275
542855
598864
462561
592532
623887
482183
650346
598775
456380
522397
522399
543117
574983
542830
543521
546830
526071
458431
509565
621025
522395
550060
576725
604198
537167
543484
544855
544675
544868
483677
522380
542861
541327
604185
687484
544862
678764
604172
591289
538542
542854
543048
543133
544867
456384
528791
556029
580257
482987
600011
523924
516842
464962
456428
811421
516777
484358
]
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 (384070 , 572891 , 537710 , 462507 , 458836 , 538560 , 650369 , 542812 , 584927 , 741750 , 543464 , 482198 , 576724 , 542807 , 538586 , 430245 , 539524 , 543275 , 542855 , 598864 , 462561 , 592532 , 623887 , 482183 , 650346 , 598775 , 456380 , 522397 , 522399 , 543117 , 574983 , 542830 , 543521 , 546830 , 526071 , 458431 , 509565 , 621025 , 522395 , 550060 , 576725 , 604198 , 537167 , 543484 , 544855 , 544675 , 544868 , 483677 , 522380 , 542861 , 541327 , 604185 , 687484 , 544862 , 678764 , 604172 , 591289 , 538542 , 542854 , 543048 , 543133 , 544867 , 456384 , 528791 , 556029 , 580257 , 482987 , 600011 , 523924 , 516842 , 464962 , 456428 , 811421 , 516777 , 484358 );
Copy
4
2.48 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
384070
430245
456380
456384
456428
458431
458836
462507
462561
464962
482183
482198
482987
483677
484358
509565
516777
516842
522380
522395
522397
522399
523924
526071
528791
537167
537710
538542
538560
538586
539524
541327
542807
542812
542830
542854
542855
542861
543048
543117
543133
543275
543464
543484
543521
544675
544855
544862
544867
544868
546830
550060
556029
572891
574983
576724
576725
580257
584927
591289
592532
598775
598864
600011
604172
604185
604198
621025
623887
650346
650369
678764
687484
741750
811421
]
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 (384070 , 430245 , 456380 , 456384 , 456428 , 458431 , 458836 , 462507 , 462561 , 464962 , 482183 , 482198 , 482987 , 483677 , 484358 , 509565 , 516777 , 516842 , 522380 , 522395 , 522397 , 522399 , 523924 , 526071 , 528791 , 537167 , 537710 , 538542 , 538560 , 538586 , 539524 , 541327 , 542807 , 542812 , 542830 , 542854 , 542855 , 542861 , 543048 , 543117 , 543133 , 543275 , 543464 , 543484 , 543521 , 544675 , 544855 , 544862 , 544867 , 544868 , 546830 , 550060 , 556029 , 572891 , 574983 , 576724 , 576725 , 580257 , 584927 , 591289 , 592532 , 598775 , 598864 , 600011 , 604172 , 604185 , 604198 , 621025 , 623887 , 650346 , 650369 , 678764 , 687484 , 741750 , 811421 );
Copy
5
147.22 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
384070
430245
456380
456384
456428
458431
458836
462507
462561
464962
482183
482198
482987
483677
484358
509565
516777
516842
522380
522395
522397
522399
523924
526071
528791
537167
537710
538542
538560
538586
539524
541327
542807
542812
542830
542854
542855
542861
543048
543117
543133
543275
543464
543484
543521
544675
544855
544862
544867
544868
546830
550060
556029
572891
574983
576724
576725
580257
584927
591289
592532
598775
598864
600011
604172
604185
604198
621025
623887
650346
650369
678764
687484
741750
811421
]
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 (384070 , 430245 , 456380 , 456384 , 456428 , 458431 , 458836 , 462507 , 462561 , 464962 , 482183 , 482198 , 482987 , 483677 , 484358 , 509565 , 516777 , 516842 , 522380 , 522395 , 522397 , 522399 , 523924 , 526071 , 528791 , 537167 , 537710 , 538542 , 538560 , 538586 , 539524 , 541327 , 542807 , 542812 , 542830 , 542854 , 542855 , 542861 , 543048 , 543117 , 543133 , 543275 , 543464 , 543484 , 543521 , 544675 , 544855 , 544862 , 544867 , 544868 , 546830 , 550060 , 556029 , 572891 , 574983 , 576724 , 576725 , 580257 , 584927 , 591289 , 592532 , 598775 , 598864 , 600011 , 604172 , 604185 , 604198 , 621025 , 623887 , 650346 , 650369 , 678764 , 687484 , 741750 , 811421 );
Copy