3
10.46 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
737416
747558
791257
701299
722662
761076
667886
668607
717646
670414
701300
409346
453603
411726
823686
719901
724656
819530
805347
464303
818643
414319
742449
451881
96952
384940
730107
456634
571464
413225
390929
414110
601853
395904
445224
605562
801363
464351
446266
574777
508438
409209
575778
629296
185855
33309
617076
760619
465500
448097
443179
474787
491321
486111
549027
667695
466240
497219
589591
400845
479126
639741
511009
522874
517301
]
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 (737416 , 747558 , 791257 , 701299 , 722662 , 761076 , 667886 , 668607 , 717646 , 670414 , 701300 , 409346 , 453603 , 411726 , 823686 , 719901 , 724656 , 819530 , 805347 , 464303 , 818643 , 414319 , 742449 , 451881 , 96952 , 384940 , 730107 , 456634 , 571464 , 413225 , 390929 , 414110 , 601853 , 395904 , 445224 , 605562 , 801363 , 464351 , 446266 , 574777 , 508438 , 409209 , 575778 , 629296 , 185855 , 33309 , 617076 , 760619 , 465500 , 448097 , 443179 , 474787 , 491321 , 486111 , 549027 , 667695 , 466240 , 497219 , 589591 , 400845 , 479126 , 639741 , 511009 , 522874 , 517301 );
Copy
4
3.30 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
33309
96952
185855
384940
390929
395904
400845
409209
409346
411726
413225
414110
414319
443179
445224
446266
448097
451881
453603
456634
464303
464351
465500
466240
474787
479126
486111
491321
497219
508438
511009
517301
522874
549027
571464
574777
575778
589591
601853
605562
617076
629296
639741
667695
667886
668607
670414
701299
701300
717646
719901
722662
724656
730107
737416
742449
747558
760619
761076
791257
801363
805347
818643
819530
823686
]
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 (33309 , 96952 , 185855 , 384940 , 390929 , 395904 , 400845 , 409209 , 409346 , 411726 , 413225 , 414110 , 414319 , 443179 , 445224 , 446266 , 448097 , 451881 , 453603 , 456634 , 464303 , 464351 , 465500 , 466240 , 474787 , 479126 , 486111 , 491321 , 497219 , 508438 , 511009 , 517301 , 522874 , 549027 , 571464 , 574777 , 575778 , 589591 , 601853 , 605562 , 617076 , 629296 , 639741 , 667695 , 667886 , 668607 , 670414 , 701299 , 701300 , 717646 , 719901 , 722662 , 724656 , 730107 , 737416 , 742449 , 747558 , 760619 , 761076 , 791257 , 801363 , 805347 , 818643 , 819530 , 823686 );
Copy
5
83.83 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
33309
96952
185855
384940
390929
395904
400845
409209
409346
411726
413225
414110
414319
443179
445224
446266
448097
451881
453603
456634
464303
464351
465500
466240
474787
479126
486111
491321
497219
508438
511009
517301
522874
549027
571464
574777
575778
589591
601853
605562
617076
629296
639741
667695
667886
668607
670414
701299
701300
717646
719901
722662
724656
730107
737416
742449
747558
760619
761076
791257
801363
805347
818643
819530
823686
]
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 (33309 , 96952 , 185855 , 384940 , 390929 , 395904 , 400845 , 409209 , 409346 , 411726 , 413225 , 414110 , 414319 , 443179 , 445224 , 446266 , 448097 , 451881 , 453603 , 456634 , 464303 , 464351 , 465500 , 466240 , 474787 , 479126 , 486111 , 491321 , 497219 , 508438 , 511009 , 517301 , 522874 , 549027 , 571464 , 574777 , 575778 , 589591 , 601853 , 605562 , 617076 , 629296 , 639741 , 667695 , 667886 , 668607 , 670414 , 701299 , 701300 , 717646 , 719901 , 722662 , 724656 , 730107 , 737416 , 742449 , 747558 , 760619 , 761076 , 791257 , 801363 , 805347 , 818643 , 819530 , 823686 );
Copy