3
13.53 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
756714
625279
626064
627361
439924
452277
455860
390924
448107
448259
449678
444798
484233
488623
506274
514101
373950
420493
443043
445306
815492
453346
446840
451267
457192
518477
529217
518501
525572
513158
564556
584566
570759
555946
557035
559938
670286
557091
609986
627727
396526
493316
495986
442975
414779
455508
514830
528386
554240
571053
564541
580094
613576
590719
481964
448221
455861
511308
516313
454312
492322
525046
548254
590411
701337
469604
516711
514800
564120
624504
513965
516214
516308
]
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 (756714 , 625279 , 626064 , 627361 , 439924 , 452277 , 455860 , 390924 , 448107 , 448259 , 449678 , 444798 , 484233 , 488623 , 506274 , 514101 , 373950 , 420493 , 443043 , 445306 , 815492 , 453346 , 446840 , 451267 , 457192 , 518477 , 529217 , 518501 , 525572 , 513158 , 564556 , 584566 , 570759 , 555946 , 557035 , 559938 , 670286 , 557091 , 609986 , 627727 , 396526 , 493316 , 495986 , 442975 , 414779 , 455508 , 514830 , 528386 , 554240 , 571053 , 564541 , 580094 , 613576 , 590719 , 481964 , 448221 , 455861 , 511308 , 516313 , 454312 , 492322 , 525046 , 548254 , 590411 , 701337 , 469604 , 516711 , 514800 , 564120 , 624504 , 513965 , 516214 , 516308 );
Copy
4
2.88 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
373950
390924
396526
414779
420493
439924
442975
443043
444798
445306
446840
448107
448221
448259
449678
451267
452277
453346
454312
455508
455860
455861
457192
469604
481964
484233
488623
492322
493316
495986
506274
511308
513158
513965
514101
514800
514830
516214
516308
516313
516711
518477
518501
525046
525572
528386
529217
548254
554240
555946
557035
557091
559938
564120
564541
564556
570759
571053
580094
584566
590411
590719
609986
613576
624504
625279
626064
627361
627727
670286
701337
756714
815492
]
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 (373950 , 390924 , 396526 , 414779 , 420493 , 439924 , 442975 , 443043 , 444798 , 445306 , 446840 , 448107 , 448221 , 448259 , 449678 , 451267 , 452277 , 453346 , 454312 , 455508 , 455860 , 455861 , 457192 , 469604 , 481964 , 484233 , 488623 , 492322 , 493316 , 495986 , 506274 , 511308 , 513158 , 513965 , 514101 , 514800 , 514830 , 516214 , 516308 , 516313 , 516711 , 518477 , 518501 , 525046 , 525572 , 528386 , 529217 , 548254 , 554240 , 555946 , 557035 , 557091 , 559938 , 564120 , 564541 , 564556 , 570759 , 571053 , 580094 , 584566 , 590411 , 590719 , 609986 , 613576 , 624504 , 625279 , 626064 , 627361 , 627727 , 670286 , 701337 , 756714 , 815492 );
Copy
5
91.91 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
373950
390924
396526
414779
420493
439924
442975
443043
444798
445306
446840
448107
448221
448259
449678
451267
452277
453346
454312
455508
455860
455861
457192
469604
481964
484233
488623
492322
493316
495986
506274
511308
513158
513965
514101
514800
514830
516214
516308
516313
516711
518477
518501
525046
525572
528386
529217
548254
554240
555946
557035
557091
559938
564120
564541
564556
570759
571053
580094
584566
590411
590719
609986
613576
624504
625279
626064
627361
627727
670286
701337
756714
815492
]
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 (373950 , 390924 , 396526 , 414779 , 420493 , 439924 , 442975 , 443043 , 444798 , 445306 , 446840 , 448107 , 448221 , 448259 , 449678 , 451267 , 452277 , 453346 , 454312 , 455508 , 455860 , 455861 , 457192 , 469604 , 481964 , 484233 , 488623 , 492322 , 493316 , 495986 , 506274 , 511308 , 513158 , 513965 , 514101 , 514800 , 514830 , 516214 , 516308 , 516313 , 516711 , 518477 , 518501 , 525046 , 525572 , 528386 , 529217 , 548254 , 554240 , 555946 , 557035 , 557091 , 559938 , 564120 , 564541 , 564556 , 570759 , 571053 , 580094 , 584566 , 590411 , 590719 , 609986 , 613576 , 624504 , 625279 , 626064 , 627361 , 627727 , 670286 , 701337 , 756714 , 815492 );
Copy