Skip to content

UuidEntryModel is getting way too big #495

@HannesEURESA

Description

@HannesEURESA

Bug description

We found out that the UuidEntryModel Is getting to big.
Our Site is really slow. And we are searchong for the reason why this is happen.

We took the Debuggbar from Laravel to see what is happening.
We took a look into our very smallest page where is just normal content, without rendering or looping collections.
We got nearly 4000 Model Queries.

Image

After we removed everything from the page (header, footer, even the content itself) the Models still there. We are clueless where this could come from.

We could find also so many entries with this in our log

[2025-09-01 16:15:20] local.DEBUG: DB Query {"sql":"select * from assets where container = ? and path in ([])","bindings":["images"],"time_ms":0.83}
[2025-09-01 16:15:20] local.DEBUG: DB Query {"sql":"select * from assets where container = ? and path in ([])","bindings":["images"],"time_ms":0.81}
[2025-09-01 16:15:20] local.DEBUG: DB Query {"sql":"select * from assets where container = ? and path in ([])","bindings":["images"],"time_ms":0.81}
[2025-09-01 16:15:20] local.DEBUG: DB Query {"sql":"select * from entries where id = ?","bindings":["464ec318-7cf9-4895-95e7-08131c2cd649"],"time_ms":0.72}
[2025-09-01 16:15:20] local.DEBUG: Model loaded {"class":"Statamic\Eloquent\Entries\UuidEntryModel","id":null,"event":"eloquent.retrieved: Statamic\Eloquent\Entries\UuidEntryModel"}

How to reproduce

Half Static cached Website, with

Logs

Environment

Environment
Application Name: xyz
Laravel Version: 11.45.2
PHP Version: 8.3.22
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: xyz.de.test
Maintenance Mode: OFF
Timezone: Europe/Berlin
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: database
Database: mysql
Logs: stack / single
Mail: ses
Queue: database
Session: database

Locales
Installed: cs, da, de, en, nb, nl, nn
LaravelLang\Lang\Plugin: 15.24.0
Locales Version: 2.10.0
Protected: de, en
Publisher Version: 16.7.0

Pulse
Enabled: ENABLED
Version: v1.4.3

Livewire
Livewire: v3.6.4

Statamic
Addons: 8
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: half
Version: 5.64.0 PRO

Statamic Addons
marcorieser/statamic-live-search: 3.0.1
marcorieser/statamic-livewire: 4.5.3
rias/statamic-redirect: 3.12.0
statamic/eloquent-driver: 4.30.2
stillat/antlers-components: 2.6.0
studio1902/statamic-peak-browser-appearance: 3.6.1
studio1902/statamic-peak-seo: 8.25.1
studio1902/statamic-peak-tools: 7.3.2

Statamic Eloquent Driver
Asset Containers: file
Assets: file
Blueprints: file
Collection Trees: eloquent
Collections: eloquent
Entries: eloquent
Fieldsets: file
Form Submissions: eloquent
Forms: eloquent
Global Sets: file
Global Variables: file
Navigation Trees: eloquent
Navigations: eloquent
Revisions: eloquent
Sites: file
Taxonomies: eloquent
Terms: eloquent
Tokens: file

Installation

Fresh statamic/statamic site via CLI

Additional details

Even if the Site is loaded half by static cache, it seems that is taken so much time.

Maybe you can figure out why this is happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions