#Multiple pages (100+) in payload admin list loads far too long

5 messages · Page 1 of 1 (latest)

exotic quiver
#

Hi, does anyone have any solution on how to fix the issue when having multiple pages/articles on admin list fetch? Every single pagination click takes like 1 second to load (yes I do have 100 testing pages with 50 diferent blocks thats the point) , but even with real data from articles that I have scraped from my university website (118 articles) the fetch for 10 of them took nearly 7 seconds and for pages it was 10 seconds

in real case its unusable
Tried using claude/codex both are halucinating telling me there isnt solution to make it faster / hide content field or other data on admin fetch

preview of pages collection

export const Pages: CollectionConfig<'pages'> = {
  slug: 'pages',
  defaultPopulate: { title: true, slug: true },
  admin: {
    defaultColumns: ['title', 'slug', 'pageType', 'updatedAt'],
    livePreview: {
      url: ({ data, req, locale }) =>
        generatePreviewPath({ slug: data?.slug, collection: 'pages', req, locale: locale?.code }),
    },
    preview: (data, { req, locale }) =>
      generatePreviewPath({ slug: data?.slug as string, collection: 'pages', req, locale }),
    useAsTitle: 'title',
  },
  fields: [
    { name: 'title' },
    {
      type: 'tabs',
      tabs: [
        {
          fields: [
            {
              name: 'layout',
              type: 'blocks',
              blocks: [50+...],
              required: true,
              admin: { initCollapsed: true },
            },
          ],
        },
        { name: 'meta' },
      ],
    },
    {
      name: 'pageType',
      type: 'select',
      options: [bool op for FE]
    }
    { name: 'publishedAt', type: 'date', admin: { position: 'sidebar' } },
    slugField({ localized: true }),
  ],
  hooks: {
    afterChange: [revalidatePage],
    beforeChange: [populatePublishedAt, populateMeta, ensureUniqueSlug('pages')],
    afterDelete: [revalidateDelete],
  },
  versions: {
    drafts: { schedulePublish: true },
    maxPerDoc: 50,
  },
}
celest wigeonBOT
exotic quiver
#

few searches on docs solved the issue (lovely to see nerfed opus before new model drop)

  forceSelect: {
    title: true,
    slug: true,
    pageType: true,
  },
    enableListViewSelectAPI: true,

for anybody in the future solution is to forceSelect so admin only fetches data from selected Columns and doesnt fetches the biggest "Content/Layout" column that contains most of the data