| 4 |
17.55 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
485249
513664
461729
520728
536586
514071
524501
568371
542590
542975
541201
647954
677672
666903
599957
604061
451262
503051
520734
524149
486316
491273
503406
415618
437855
501329
537654
520739
530744
531126
536233
537894
486179
545621
646025
676087
677781
651209
676112
676632
685714
600206
617437
637021
586596
599899
634116
627807
632599
633796
428276
537584
545341
548552
696582
645276
677676
631162
632671
634153
599965
633451
631194
630221
632258
530696
530703
666895
645284
630550
638298
642032
632261
632978
644986
451866
539203
545409
556741
707391
666894
675017
555789
642660
628371
533013
545418
568328
628333
635275
]
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 (485249, 513664, 461729, 520728, 536586, 514071, 524501, 568371, 542590, 542975, 541201, 647954, 677672, 666903, 599957, 604061, 451262, 503051, 520734, 524149, 486316, 491273, 503406, 415618, 437855, 501329, 537654, 520739, 530744, 531126, 536233, 537894, 486179, 545621, 646025, 676087, 677781, 651209, 676112, 676632, 685714, 600206, 617437, 637021, 586596, 599899, 634116, 627807, 632599, 633796, 428276, 537584, 545341, 548552, 696582, 645276, 677676, 631162, 632671, 634153, 599965, 633451, 631194, 630221, 632258, 530696, 530703, 666895, 645284, 630550, 638298, 642032, 632261, 632978, 644986, 451866, 539203, 545409, 556741, 707391, 666894, 675017, 555789, 642660, 628371, 533013, 545418, 568328, 628333, 635275);
|
| 5 |
2.14 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
415618
428276
437855
451262
451866
461729
485249
486179
486316
491273
501329
503051
503406
513664
514071
520728
520734
520739
524149
524501
530696
530703
530744
531126
533013
536233
536586
537584
537654
537894
539203
541201
542590
542975
545341
545409
545418
545621
548552
555789
556741
568328
568371
586596
599899
599957
599965
600206
604061
617437
627807
628333
628371
630221
630550
631162
631194
632258
632261
632599
632671
632978
633451
633796
634116
634153
635275
637021
638298
642032
642660
644986
645276
645284
646025
647954
651209
666894
666895
666903
675017
676087
676112
676632
677672
677676
677781
685714
696582
707391
]
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 (415618, 428276, 437855, 451262, 451866, 461729, 485249, 486179, 486316, 491273, 501329, 503051, 503406, 513664, 514071, 520728, 520734, 520739, 524149, 524501, 530696, 530703, 530744, 531126, 533013, 536233, 536586, 537584, 537654, 537894, 539203, 541201, 542590, 542975, 545341, 545409, 545418, 545621, 548552, 555789, 556741, 568328, 568371, 586596, 599899, 599957, 599965, 600206, 604061, 617437, 627807, 628333, 628371, 630221, 630550, 631162, 631194, 632258, 632261, 632599, 632671, 632978, 633451, 633796, 634116, 634153, 635275, 637021, 638298, 642032, 642660, 644986, 645276, 645284, 646025, 647954, 651209, 666894, 666895, 666903, 675017, 676087, 676112, 676632, 677672, 677676, 677781, 685714, 696582, 707391);
|
| 6 |
113.21 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
415618
428276
437855
451262
451866
461729
485249
486179
486316
491273
501329
503051
503406
513664
514071
520728
520734
520739
524149
524501
530696
530703
530744
531126
533013
536233
536586
537584
537654
537894
539203
541201
542590
542975
545341
545409
545418
545621
548552
555789
556741
568328
568371
586596
599899
599957
599965
600206
604061
617437
627807
628333
628371
630221
630550
631162
631194
632258
632261
632599
632671
632978
633451
633796
634116
634153
635275
637021
638298
642032
642660
644986
645276
645284
646025
647954
651209
666894
666895
666903
675017
676087
676112
676632
677672
677676
677781
685714
696582
707391
]
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 (415618, 428276, 437855, 451262, 451866, 461729, 485249, 486179, 486316, 491273, 501329, 503051, 503406, 513664, 514071, 520728, 520734, 520739, 524149, 524501, 530696, 530703, 530744, 531126, 533013, 536233, 536586, 537584, 537654, 537894, 539203, 541201, 542590, 542975, 545341, 545409, 545418, 545621, 548552, 555789, 556741, 568328, 568371, 586596, 599899, 599957, 599965, 600206, 604061, 617437, 627807, 628333, 628371, 630221, 630550, 631162, 631194, 632258, 632261, 632599, 632671, 632978, 633451, 633796, 634116, 634153, 635275, 637021, 638298, 642032, 642660, 644986, 645276, 645284, 646025, 647954, 651209, 666894, 666895, 666903, 675017, 676087, 676112, 676632, 677672, 677676, 677781, 685714, 696582, 707391);
|