3
12.43 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
768198
750246
720306
314541
447507
97401
437118
737148
469579
756106
282265
421289
426290
508457
673776
485249
597246
686034
714663
742137
14711
491253
592255
623290
517722
373842
717875
743822
486766
419600
559162
758876
720132
800585
562796
614993
475489
469619
446198
592197
633607
755030
720111
821043
645322
724139
559986
583593
814798
818439
576990
400912
410602
406290
456120
784158
468705
452257
623292
517725
393590
452279
526232
486316
787020
406350
443090
523392
491256
617424
628082
497679
577980
]
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 (768198 , 750246 , 720306 , 314541 , 447507 , 97401 , 437118 , 737148 , 469579 , 756106 , 282265 , 421289 , 426290 , 508457 , 673776 , 485249 , 597246 , 686034 , 714663 , 742137 , 14711 , 491253 , 592255 , 623290 , 517722 , 373842 , 717875 , 743822 , 486766 , 419600 , 559162 , 758876 , 720132 , 800585 , 562796 , 614993 , 475489 , 469619 , 446198 , 592197 , 633607 , 755030 , 720111 , 821043 , 645322 , 724139 , 559986 , 583593 , 814798 , 818439 , 576990 , 400912 , 410602 , 406290 , 456120 , 784158 , 468705 , 452257 , 623292 , 517725 , 393590 , 452279 , 526232 , 486316 , 787020 , 406350 , 443090 , 523392 , 491256 , 617424 , 628082 , 497679 , 577980 );
Copy
4
2.80 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
14711
97401
282265
314541
373842
393590
400912
406290
406350
410602
419600
421289
426290
437118
443090
446198
447507
452257
452279
456120
468705
469579
469619
475489
485249
486316
486766
491253
491256
497679
508457
517722
517725
523392
526232
559162
559986
562796
576990
577980
583593
592197
592255
597246
614993
617424
623290
623292
628082
633607
645322
673776
686034
714663
717875
720111
720132
720306
724139
737148
742137
743822
750246
755030
756106
758876
768198
784158
787020
800585
814798
818439
821043
]
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 (14711 , 97401 , 282265 , 314541 , 373842 , 393590 , 400912 , 406290 , 406350 , 410602 , 419600 , 421289 , 426290 , 437118 , 443090 , 446198 , 447507 , 452257 , 452279 , 456120 , 468705 , 469579 , 469619 , 475489 , 485249 , 486316 , 486766 , 491253 , 491256 , 497679 , 508457 , 517722 , 517725 , 523392 , 526232 , 559162 , 559986 , 562796 , 576990 , 577980 , 583593 , 592197 , 592255 , 597246 , 614993 , 617424 , 623290 , 623292 , 628082 , 633607 , 645322 , 673776 , 686034 , 714663 , 717875 , 720111 , 720132 , 720306 , 724139 , 737148 , 742137 , 743822 , 750246 , 755030 , 756106 , 758876 , 768198 , 784158 , 787020 , 800585 , 814798 , 818439 , 821043 );
Copy
5
93.84 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
14711
97401
282265
314541
373842
393590
400912
406290
406350
410602
419600
421289
426290
437118
443090
446198
447507
452257
452279
456120
468705
469579
469619
475489
485249
486316
486766
491253
491256
497679
508457
517722
517725
523392
526232
559162
559986
562796
576990
577980
583593
592197
592255
597246
614993
617424
623290
623292
628082
633607
645322
673776
686034
714663
717875
720111
720132
720306
724139
737148
742137
743822
750246
755030
756106
758876
768198
784158
787020
800585
814798
818439
821043
]
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 (14711 , 97401 , 282265 , 314541 , 373842 , 393590 , 400912 , 406290 , 406350 , 410602 , 419600 , 421289 , 426290 , 437118 , 443090 , 446198 , 447507 , 452257 , 452279 , 456120 , 468705 , 469579 , 469619 , 475489 , 485249 , 486316 , 486766 , 491253 , 491256 , 497679 , 508457 , 517722 , 517725 , 523392 , 526232 , 559162 , 559986 , 562796 , 576990 , 577980 , 583593 , 592197 , 592255 , 597246 , 614993 , 617424 , 623290 , 623292 , 628082 , 633607 , 645322 , 673776 , 686034 , 714663 , 717875 , 720111 , 720132 , 720306 , 724139 , 737148 , 742137 , 743822 , 750246 , 755030 , 756106 , 758876 , 768198 , 784158 , 787020 , 800585 , 814798 , 818439 , 821043 );
Copy