| 3 |
16.04 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
473372
436461
406041
481358
519460
524089
583654
571958
481847
521357
539001
550614
555857
567152
663380
397548
404811
463134
497424
509696
529125
484954
523159
663465
598824
599295
463165
464650
489823
485304
520941
510466
496086
486314
395856
460082
540661
424644
510707
510692
605467
446457
452828
476903
579707
621767
413096
500803
399263
568558
467162
453529
517549
518559
454871
525262
482824
493192
557064
567046
519977
446682
452178
503934
619569
603124
577822
644954
523809
564136
523030
559044
424746
659216
532644
490204
613488
609922
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?
)
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 (473372, 436461, 406041, 481358, 519460, 524089, 583654, 571958, 481847, 521357, 539001, 550614, 555857, 567152, 663380, 397548, 404811, 463134, 497424, 509696, 529125, 484954, 523159, 663465, 598824, 599295, 463165, 464650, 489823, 485304, 520941, 510466, 496086, 486314, 395856, 460082, 540661, 424644, 510707, 510692, 605467, 446457, 452828, 476903, 579707, 621767, 413096, 500803, 399263, 568558, 467162, 453529, 517549, 518559, 454871, 525262, 482824, 493192, 557064, 567046, 519977, 446682, 452178, 503934, 619569, 603124, 577822, 644954, 523809, 564136, 523030, 559044, 424746, 659216, 532644, 490204, 613488, 609922);
|
| 4 |
2.48 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
395856
397548
399263
404811
406041
413096
424644
424746
436461
446457
446682
452178
452828
453529
454871
460082
463134
463165
464650
467162
473372
476903
481358
481847
482824
484954
485304
486314
489823
490204
493192
496086
497424
500803
503934
509696
510466
510692
510707
517549
518559
519460
519977
520941
521357
523030
523159
523809
524089
525262
529125
532644
539001
540661
550614
555857
557064
559044
564136
567046
567152
568558
571958
577822
579707
583654
598824
599295
603124
605467
609922
613488
619569
621767
644954
659216
663380
663465
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?
)
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 (395856, 397548, 399263, 404811, 406041, 413096, 424644, 424746, 436461, 446457, 446682, 452178, 452828, 453529, 454871, 460082, 463134, 463165, 464650, 467162, 473372, 476903, 481358, 481847, 482824, 484954, 485304, 486314, 489823, 490204, 493192, 496086, 497424, 500803, 503934, 509696, 510466, 510692, 510707, 517549, 518559, 519460, 519977, 520941, 521357, 523030, 523159, 523809, 524089, 525262, 529125, 532644, 539001, 540661, 550614, 555857, 557064, 559044, 564136, 567046, 567152, 568558, 571958, 577822, 579707, 583654, 598824, 599295, 603124, 605467, 609922, 613488, 619569, 621767, 644954, 659216, 663380, 663465);
|
| 5 |
124.02 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
395856
397548
399263
404811
406041
413096
424644
424746
436461
446457
446682
452178
452828
453529
454871
460082
463134
463165
464650
467162
473372
476903
481358
481847
482824
484954
485304
486314
489823
490204
493192
496086
497424
500803
503934
509696
510466
510692
510707
517549
518559
519460
519977
520941
521357
523030
523159
523809
524089
525262
529125
532644
539001
540661
550614
555857
557064
559044
564136
567046
567152
568558
571958
577822
579707
583654
598824
599295
603124
605467
609922
613488
619569
621767
644954
659216
663380
663465
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?
)
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 (395856, 397548, 399263, 404811, 406041, 413096, 424644, 424746, 436461, 446457, 446682, 452178, 452828, 453529, 454871, 460082, 463134, 463165, 464650, 467162, 473372, 476903, 481358, 481847, 482824, 484954, 485304, 486314, 489823, 490204, 493192, 496086, 497424, 500803, 503934, 509696, 510466, 510692, 510707, 517549, 518559, 519460, 519977, 520941, 521357, 523030, 523159, 523809, 524089, 525262, 529125, 532644, 539001, 540661, 550614, 555857, 557064, 559044, 564136, 567046, 567152, 568558, 571958, 577822, 579707, 583654, 598824, 599295, 603124, 605467, 609922, 613488, 619569, 621767, 644954, 659216, 663380, 663465);
|