3
11.10 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
517881
538689
825981
775103
657500
669902
784165
777219
828320
693157
607143
552547
751808
678383
630873
710827
739280
670733
629001
550625
458349
826354
790685
602245
444192
534857
683270
694251
609379
525489
609644
439869
787399
768246
789503
796452
411010
762247
796776
757219
770702
577142
607018
484254
594072
495550
530099
452262
660571
508431
600242
684564
435539
548392
447881
457102
439868
417466
512001
506764
538295
444188
466341
540889
457703
468501
415896
420918
620330
551053
]
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 (517881 , 538689 , 825981 , 775103 , 657500 , 669902 , 784165 , 777219 , 828320 , 693157 , 607143 , 552547 , 751808 , 678383 , 630873 , 710827 , 739280 , 670733 , 629001 , 550625 , 458349 , 826354 , 790685 , 602245 , 444192 , 534857 , 683270 , 694251 , 609379 , 525489 , 609644 , 439869 , 787399 , 768246 , 789503 , 796452 , 411010 , 762247 , 796776 , 757219 , 770702 , 577142 , 607018 , 484254 , 594072 , 495550 , 530099 , 452262 , 660571 , 508431 , 600242 , 684564 , 435539 , 548392 , 447881 , 457102 , 439868 , 417466 , 512001 , 506764 , 538295 , 444188 , 466341 , 540889 , 457703 , 468501 , 415896 , 420918 , 620330 , 551053 );
Copy
4
2.81 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
411010
415896
417466
420918
435539
439868
439869
444188
444192
447881
452262
457102
457703
458349
466341
468501
484254
495550
506764
508431
512001
517881
525489
530099
534857
538295
538689
540889
548392
550625
551053
552547
577142
594072
600242
602245
607018
607143
609379
609644
620330
629001
630873
657500
660571
669902
670733
678383
683270
684564
693157
694251
710827
739280
751808
757219
762247
768246
775103
777219
784165
787399
789503
790685
796452
796776
825981
826354
828320
]
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 (411010 , 415896 , 417466 , 420918 , 435539 , 439868 , 439869 , 444188 , 444192 , 447881 , 452262 , 457102 , 457703 , 458349 , 466341 , 468501 , 484254 , 495550 , 506764 , 508431 , 512001 , 517881 , 525489 , 530099 , 534857 , 538295 , 538689 , 540889 , 548392 , 550625 , 551053 , 552547 , 577142 , 594072 , 600242 , 602245 , 607018 , 607143 , 609379 , 609644 , 620330 , 629001 , 630873 , 657500 , 660571 , 669902 , 670733 , 678383 , 683270 , 684564 , 693157 , 694251 , 710827 , 739280 , 751808 , 757219 , 762247 , 768246 , 775103 , 777219 , 784165 , 787399 , 789503 , 790685 , 796452 , 796776 , 825981 , 826354 , 828320 );
Copy
5
76.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
411010
415896
417466
420918
435539
439868
439869
444188
444192
447881
452262
457102
457703
458349
466341
468501
484254
495550
506764
508431
512001
517881
525489
530099
534857
538295
538689
540889
548392
550625
551053
552547
577142
594072
600242
602245
607018
607143
609379
609644
620330
629001
630873
657500
660571
669902
670733
678383
683270
684564
693157
694251
710827
739280
751808
757219
762247
768246
775103
777219
784165
787399
789503
790685
796452
796776
825981
826354
828320
]
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 (411010 , 415896 , 417466 , 420918 , 435539 , 439868 , 439869 , 444188 , 444192 , 447881 , 452262 , 457102 , 457703 , 458349 , 466341 , 468501 , 484254 , 495550 , 506764 , 508431 , 512001 , 517881 , 525489 , 530099 , 534857 , 538295 , 538689 , 540889 , 548392 , 550625 , 551053 , 552547 , 577142 , 594072 , 600242 , 602245 , 607018 , 607143 , 609379 , 609644 , 620330 , 629001 , 630873 , 657500 , 660571 , 669902 , 670733 , 678383 , 683270 , 684564 , 693157 , 694251 , 710827 , 739280 , 751808 , 757219 , 762247 , 768246 , 775103 , 777219 , 784165 , 787399 , 789503 , 790685 , 796452 , 796776 , 825981 , 826354 , 828320 );
Copy