3
10.44 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
794424
489144
511034
565640
668809
585747
600700
468257
509443
583574
571175
706902
803700
707783
809316
556550
559825
558757
803838
798846
811271
418827
505256
708592
789638
772759
471007
469597
590524
710403
502366
445825
582019
603922
595328
575279
626283
801277
721395
810616
731063
609959
445314
515869
556593
597857
487946
807899
794214
427311
586474
469223
603937
456480
745312
486863
509449
574243
516718
608716
564743
528452
516263
523253
518473
]
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 (794424 , 489144 , 511034 , 565640 , 668809 , 585747 , 600700 , 468257 , 509443 , 583574 , 571175 , 706902 , 803700 , 707783 , 809316 , 556550 , 559825 , 558757 , 803838 , 798846 , 811271 , 418827 , 505256 , 708592 , 789638 , 772759 , 471007 , 469597 , 590524 , 710403 , 502366 , 445825 , 582019 , 603922 , 595328 , 575279 , 626283 , 801277 , 721395 , 810616 , 731063 , 609959 , 445314 , 515869 , 556593 , 597857 , 487946 , 807899 , 794214 , 427311 , 586474 , 469223 , 603937 , 456480 , 745312 , 486863 , 509449 , 574243 , 516718 , 608716 , 564743 , 528452 , 516263 , 523253 , 518473 );
Copy
4
2.37 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
418827
427311
445314
445825
456480
468257
469223
469597
471007
486863
487946
489144
502366
505256
509443
509449
511034
515869
516263
516718
518473
523253
528452
556550
556593
558757
559825
564743
565640
571175
574243
575279
582019
583574
585747
586474
590524
595328
597857
600700
603922
603937
608716
609959
626283
668809
706902
707783
708592
710403
721395
731063
745312
772759
789638
794214
794424
798846
801277
803700
803838
807899
809316
810616
811271
]
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 (418827 , 427311 , 445314 , 445825 , 456480 , 468257 , 469223 , 469597 , 471007 , 486863 , 487946 , 489144 , 502366 , 505256 , 509443 , 509449 , 511034 , 515869 , 516263 , 516718 , 518473 , 523253 , 528452 , 556550 , 556593 , 558757 , 559825 , 564743 , 565640 , 571175 , 574243 , 575279 , 582019 , 583574 , 585747 , 586474 , 590524 , 595328 , 597857 , 600700 , 603922 , 603937 , 608716 , 609959 , 626283 , 668809 , 706902 , 707783 , 708592 , 710403 , 721395 , 731063 , 745312 , 772759 , 789638 , 794214 , 794424 , 798846 , 801277 , 803700 , 803838 , 807899 , 809316 , 810616 , 811271 );
Copy
5
69.38 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
418827
427311
445314
445825
456480
468257
469223
469597
471007
486863
487946
489144
502366
505256
509443
509449
511034
515869
516263
516718
518473
523253
528452
556550
556593
558757
559825
564743
565640
571175
574243
575279
582019
583574
585747
586474
590524
595328
597857
600700
603922
603937
608716
609959
626283
668809
706902
707783
708592
710403
721395
731063
745312
772759
789638
794214
794424
798846
801277
803700
803838
807899
809316
810616
811271
]
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 (418827 , 427311 , 445314 , 445825 , 456480 , 468257 , 469223 , 469597 , 471007 , 486863 , 487946 , 489144 , 502366 , 505256 , 509443 , 509449 , 511034 , 515869 , 516263 , 516718 , 518473 , 523253 , 528452 , 556550 , 556593 , 558757 , 559825 , 564743 , 565640 , 571175 , 574243 , 575279 , 582019 , 583574 , 585747 , 586474 , 590524 , 595328 , 597857 , 600700 , 603922 , 603937 , 608716 , 609959 , 626283 , 668809 , 706902 , 707783 , 708592 , 710403 , 721395 , 731063 , 745312 , 772759 , 789638 , 794214 , 794424 , 798846 , 801277 , 803700 , 803838 , 807899 , 809316 , 810616 , 811271 );
Copy