4
13.94 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
494736
506239
396349
468915
476330
478503
482301
490450
494325
517826
518871
537893
523888
482307
557253
566592
584627
559283
569542
570735
550827
568189
584019
666117
583979
454396
473044
484193
452298
476314
526206
528710
502306
503189
468220
474087
476232
567758
550035
568454
586501
518943
481878
523591
508807
526214
551115
549735
571809
562599
584136
624468
456981
474800
487315
536436
483631
484660
571199
554529
644737
588473
626478
424450
484807
584059
528931
617431
529130
601101
]
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 (494736 , 506239 , 396349 , 468915 , 476330 , 478503 , 482301 , 490450 , 494325 , 517826 , 518871 , 537893 , 523888 , 482307 , 557253 , 566592 , 584627 , 559283 , 569542 , 570735 , 550827 , 568189 , 584019 , 666117 , 583979 , 454396 , 473044 , 484193 , 452298 , 476314 , 526206 , 528710 , 502306 , 503189 , 468220 , 474087 , 476232 , 567758 , 550035 , 568454 , 586501 , 518943 , 481878 , 523591 , 508807 , 526214 , 551115 , 549735 , 571809 , 562599 , 584136 , 624468 , 456981 , 474800 , 487315 , 536436 , 483631 , 484660 , 571199 , 554529 , 644737 , 588473 , 626478 , 424450 , 484807 , 584059 , 528931 , 617431 , 529130 , 601101 );
Copy
5
2.92 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
396349
424450
452298
454396
456981
468220
468915
473044
474087
474800
476232
476314
476330
478503
481878
482301
482307
483631
484193
484660
484807
487315
490450
494325
494736
502306
503189
506239
508807
517826
518871
518943
523591
523888
526206
526214
528710
528931
529130
536436
537893
549735
550035
550827
551115
554529
557253
559283
562599
566592
567758
568189
568454
569542
570735
571199
571809
583979
584019
584059
584136
584627
586501
588473
601101
617431
624468
626478
644737
666117
]
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 (396349 , 424450 , 452298 , 454396 , 456981 , 468220 , 468915 , 473044 , 474087 , 474800 , 476232 , 476314 , 476330 , 478503 , 481878 , 482301 , 482307 , 483631 , 484193 , 484660 , 484807 , 487315 , 490450 , 494325 , 494736 , 502306 , 503189 , 506239 , 508807 , 517826 , 518871 , 518943 , 523591 , 523888 , 526206 , 526214 , 528710 , 528931 , 529130 , 536436 , 537893 , 549735 , 550035 , 550827 , 551115 , 554529 , 557253 , 559283 , 562599 , 566592 , 567758 , 568189 , 568454 , 569542 , 570735 , 571199 , 571809 , 583979 , 584019 , 584059 , 584136 , 584627 , 586501 , 588473 , 601101 , 617431 , 624468 , 626478 , 644737 , 666117 );
Copy
6
86.62 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
396349
424450
452298
454396
456981
468220
468915
473044
474087
474800
476232
476314
476330
478503
481878
482301
482307
483631
484193
484660
484807
487315
490450
494325
494736
502306
503189
506239
508807
517826
518871
518943
523591
523888
526206
526214
528710
528931
529130
536436
537893
549735
550035
550827
551115
554529
557253
559283
562599
566592
567758
568189
568454
569542
570735
571199
571809
583979
584019
584059
584136
584627
586501
588473
601101
617431
624468
626478
644737
666117
]
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 (396349 , 424450 , 452298 , 454396 , 456981 , 468220 , 468915 , 473044 , 474087 , 474800 , 476232 , 476314 , 476330 , 478503 , 481878 , 482301 , 482307 , 483631 , 484193 , 484660 , 484807 , 487315 , 490450 , 494325 , 494736 , 502306 , 503189 , 506239 , 508807 , 517826 , 518871 , 518943 , 523591 , 523888 , 526206 , 526214 , 528710 , 528931 , 529130 , 536436 , 537893 , 549735 , 550035 , 550827 , 551115 , 554529 , 557253 , 559283 , 562599 , 566592 , 567758 , 568189 , 568454 , 569542 , 570735 , 571199 , 571809 , 583979 , 584019 , 584059 , 584136 , 584627 , 586501 , 588473 , 601101 , 617431 , 624468 , 626478 , 644737 , 666117 );
Copy