4
13.02 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
500298
515413
560409
543317
551116
570867
661570
660582
546213
634770
600279
600377
596865
607369
779647
793082
436393
451636
455343
422290
499551
449508
407800
429461
455294
457422
446034
449512
534769
500600
463580
471809
544420
579373
594422
588818
617115
432707
467657
450721
450910
450966
501713
498112
408424
511356
456109
493402
458384
641910
475483
519212
567779
560664
565013
752700
522604
568574
458200
512966
466376
512533
567756
451175
428409
563787
628175
523815
516885
536910
535369
518768
650419
589107
]
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 (500298 , 515413 , 560409 , 543317 , 551116 , 570867 , 661570 , 660582 , 546213 , 634770 , 600279 , 600377 , 596865 , 607369 , 779647 , 793082 , 436393 , 451636 , 455343 , 422290 , 499551 , 449508 , 407800 , 429461 , 455294 , 457422 , 446034 , 449512 , 534769 , 500600 , 463580 , 471809 , 544420 , 579373 , 594422 , 588818 , 617115 , 432707 , 467657 , 450721 , 450910 , 450966 , 501713 , 498112 , 408424 , 511356 , 456109 , 493402 , 458384 , 641910 , 475483 , 519212 , 567779 , 560664 , 565013 , 752700 , 522604 , 568574 , 458200 , 512966 , 466376 , 512533 , 567756 , 451175 , 428409 , 563787 , 628175 , 523815 , 516885 , 536910 , 535369 , 518768 , 650419 , 589107 );
Copy
5
2.61 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
407800
408424
422290
428409
429461
432707
436393
446034
449508
449512
450721
450910
450966
451175
451636
455294
455343
456109
457422
458200
458384
463580
466376
467657
471809
475483
493402
498112
499551
500298
500600
501713
511356
512533
512966
515413
516885
518768
519212
522604
523815
534769
535369
536910
543317
544420
546213
551116
560409
560664
563787
565013
567756
567779
568574
570867
579373
588818
589107
594422
596865
600279
600377
607369
617115
628175
634770
641910
650419
660582
661570
752700
779647
793082
]
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 (407800 , 408424 , 422290 , 428409 , 429461 , 432707 , 436393 , 446034 , 449508 , 449512 , 450721 , 450910 , 450966 , 451175 , 451636 , 455294 , 455343 , 456109 , 457422 , 458200 , 458384 , 463580 , 466376 , 467657 , 471809 , 475483 , 493402 , 498112 , 499551 , 500298 , 500600 , 501713 , 511356 , 512533 , 512966 , 515413 , 516885 , 518768 , 519212 , 522604 , 523815 , 534769 , 535369 , 536910 , 543317 , 544420 , 546213 , 551116 , 560409 , 560664 , 563787 , 565013 , 567756 , 567779 , 568574 , 570867 , 579373 , 588818 , 589107 , 594422 , 596865 , 600279 , 600377 , 607369 , 617115 , 628175 , 634770 , 641910 , 650419 , 660582 , 661570 , 752700 , 779647 , 793082 );
Copy
6
123.90 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
407800
408424
422290
428409
429461
432707
436393
446034
449508
449512
450721
450910
450966
451175
451636
455294
455343
456109
457422
458200
458384
463580
466376
467657
471809
475483
493402
498112
499551
500298
500600
501713
511356
512533
512966
515413
516885
518768
519212
522604
523815
534769
535369
536910
543317
544420
546213
551116
560409
560664
563787
565013
567756
567779
568574
570867
579373
588818
589107
594422
596865
600279
600377
607369
617115
628175
634770
641910
650419
660582
661570
752700
779647
793082
]
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 (407800 , 408424 , 422290 , 428409 , 429461 , 432707 , 436393 , 446034 , 449508 , 449512 , 450721 , 450910 , 450966 , 451175 , 451636 , 455294 , 455343 , 456109 , 457422 , 458200 , 458384 , 463580 , 466376 , 467657 , 471809 , 475483 , 493402 , 498112 , 499551 , 500298 , 500600 , 501713 , 511356 , 512533 , 512966 , 515413 , 516885 , 518768 , 519212 , 522604 , 523815 , 534769 , 535369 , 536910 , 543317 , 544420 , 546213 , 551116 , 560409 , 560664 , 563787 , 565013 , 567756 , 567779 , 568574 , 570867 , 579373 , 588818 , 589107 , 594422 , 596865 , 600279 , 600377 , 607369 , 617115 , 628175 , 634770 , 641910 , 650419 , 660582 , 661570 , 752700 , 779647 , 793082 );
Copy