Make WordPress Core

Opened 15 years ago

Last modified 6 years ago

#13926 new defect (bug)

Adding 'page-attributes' to a custom post type slows down edit screen in the admin

Reported by: granulr's profile granulr Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords: needs-patch
Focuses: Cc:

Description

When I add 'page-attributes' to a custom post type it takes roughly 1.5 to 2 min for the edit screen to load... When I remove 'page-attributes' edit screen load is extremely fast.

Under the post type i created I have 5000+ entries.

Change History (8)

#1 follow-up: @nacin
15 years ago

I think it's less the page-attributes part and more the 5000+ entries part.

#2 in reply to: ↑ 1 @granulr
15 years ago

Replying to nacin:

I think it's less the page-attributes part and more the 5000+ entries part.

Sure, but I have another post type that has 15k posts and no problem there... It's extremely fast - but If I add page-attributes to that post type it's kills it

#3 follow-up: @nacin
15 years ago

Correct. I was referring to the fact that page-attributes on a custom post type in itself is not a performance hit. The issue is 5,000 pages getting fetched and rendered in the parent drop-down, I'd imagine.

#4 in reply to: ↑ 3 @granulr
15 years ago

Ahhhh - ok...

#5 @nacin
14 years ago

  • Milestone changed from Awaiting Review to Future Release

#6 @nacin
11 years ago

  • Component changed from General to Post Types

#7 follow-up: @chriscct7
9 years ago

  • Keywords needs-patch added

I can't find it, but there's a ticket on trac somewhere for using select2 to scale the page dropdown.

#8 in reply to: ↑ 7 @samuelsidler
9 years ago

Replying to chriscct7:

I can't find it, but there's a ticket on trac somewhere for using select2 to scale the page dropdown.

See #31696 for Select2 and #9864 for scaling issues.

Note: See TracTickets for help on using tickets.