Help topics

How Morphic performance and limits work

Morphic keeps its model definitions in the WordPress object cache. Lists return pages of entries, with at most 500 entries per page. Each entry can hold up to 262144 bytes (256 KB) of data unless a model sets a lower limit. This page lists these limits and the cache setting.

Lists return pages

A list returns 100 entries when your request does not set a limit. A limit can be from 1 to 500. A value outside that range fails with the message "limit is 1 to 500".

A list response includes a next value when more entries exist. Send that value as the cursor parameter to get the next page. A search response has no next value, so search returns one page.

Entries have a size limit

Each model has a default limit of 262144 bytes for one entry. In the model editor, the Maximum size of one entry field sets a limit in bytes. Its hint says the value can be up to 262144 (256 KB).

Use a media field for files. An entry larger than the limit is refused. The message reads "data is … bytes; the limit is …", with the byte counts filled in.

The object cache keeps model definitions

Morphic stores its model registry in the WordPress object cache, in the group morphic. When WordPress uses a persistent object cache, the Object cache row on the General tab shows Persistent cache active.

Otherwise, the row shows the hint "Install Redis or Memcached for cached reads across requests." Install Redis or Memcached, then check the row again.

The fast endpoint needs Morphic Pro

With Morphic Pro licensed, Morphic Pro supplies a fast endpoint address. The address appears in the Fast endpoint row on the General tab. Without Morphic Pro, the row does not appear.