3
11.51 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
403404
485330
519563
607413
142993
3444
807911
3786
671694
97688
384373
188263
393027
96479
469147
147400
404175
428135
793771
714618
341608
394646
338371
96239
418864
543623
444449
418848
447031
400642
420643
443405
443663
472395
479077
611307
387221
400932
448887
465224
755082
388690
401928
444145
497473
470596
434669
445679
482776
447861
453087
583724
475104
382355
413818
130105
450224
466003
360439
523856
517478
421526
446167
396020
408214
484402
468733
467428
401919
679567
605122
483788
596839
]
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 (403404 , 485330 , 519563 , 607413 , 142993 , 3444 , 807911 , 3786 , 671694 , 97688 , 384373 , 188263 , 393027 , 96479 , 469147 , 147400 , 404175 , 428135 , 793771 , 714618 , 341608 , 394646 , 338371 , 96239 , 418864 , 543623 , 444449 , 418848 , 447031 , 400642 , 420643 , 443405 , 443663 , 472395 , 479077 , 611307 , 387221 , 400932 , 448887 , 465224 , 755082 , 388690 , 401928 , 444145 , 497473 , 470596 , 434669 , 445679 , 482776 , 447861 , 453087 , 583724 , 475104 , 382355 , 413818 , 130105 , 450224 , 466003 , 360439 , 523856 , 517478 , 421526 , 446167 , 396020 , 408214 , 484402 , 468733 , 467428 , 401919 , 679567 , 605122 , 483788 , 596839 );
Copy
4
2.91 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
3444
3786
96239
96479
97688
130105
142993
147400
188263
338371
341608
360439
382355
384373
387221
388690
393027
394646
396020
400642
400932
401919
401928
403404
404175
408214
413818
418848
418864
420643
421526
428135
434669
443405
443663
444145
444449
445679
446167
447031
447861
448887
450224
453087
465224
466003
467428
468733
469147
470596
472395
475104
479077
482776
483788
484402
485330
497473
517478
519563
523856
543623
583724
596839
605122
607413
611307
671694
679567
714618
755082
793771
807911
]
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 (3444 , 3786 , 96239 , 96479 , 97688 , 130105 , 142993 , 147400 , 188263 , 338371 , 341608 , 360439 , 382355 , 384373 , 387221 , 388690 , 393027 , 394646 , 396020 , 400642 , 400932 , 401919 , 401928 , 403404 , 404175 , 408214 , 413818 , 418848 , 418864 , 420643 , 421526 , 428135 , 434669 , 443405 , 443663 , 444145 , 444449 , 445679 , 446167 , 447031 , 447861 , 448887 , 450224 , 453087 , 465224 , 466003 , 467428 , 468733 , 469147 , 470596 , 472395 , 475104 , 479077 , 482776 , 483788 , 484402 , 485330 , 497473 , 517478 , 519563 , 523856 , 543623 , 583724 , 596839 , 605122 , 607413 , 611307 , 671694 , 679567 , 714618 , 755082 , 793771 , 807911 );
Copy
5
133.48 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
3444
3786
96239
96479
97688
130105
142993
147400
188263
338371
341608
360439
382355
384373
387221
388690
393027
394646
396020
400642
400932
401919
401928
403404
404175
408214
413818
418848
418864
420643
421526
428135
434669
443405
443663
444145
444449
445679
446167
447031
447861
448887
450224
453087
465224
466003
467428
468733
469147
470596
472395
475104
479077
482776
483788
484402
485330
497473
517478
519563
523856
543623
583724
596839
605122
607413
611307
671694
679567
714618
755082
793771
807911
]
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 (3444 , 3786 , 96239 , 96479 , 97688 , 130105 , 142993 , 147400 , 188263 , 338371 , 341608 , 360439 , 382355 , 384373 , 387221 , 388690 , 393027 , 394646 , 396020 , 400642 , 400932 , 401919 , 401928 , 403404 , 404175 , 408214 , 413818 , 418848 , 418864 , 420643 , 421526 , 428135 , 434669 , 443405 , 443663 , 444145 , 444449 , 445679 , 446167 , 447031 , 447861 , 448887 , 450224 , 453087 , 465224 , 466003 , 467428 , 468733 , 469147 , 470596 , 472395 , 475104 , 479077 , 482776 , 483788 , 484402 , 485330 , 497473 , 517478 , 519563 , 523856 , 543623 , 583724 , 596839 , 605122 , 607413 , 611307 , 671694 , 679567 , 714618 , 755082 , 793771 , 807911 );
Copy