Skip to content

Commit c1293df

Browse files
committed
Add cache warning
1 parent 2803825 commit c1293df

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,17 @@ foreach ($groups as $group)
9898
}
9999
}
100100
```
101+
102+
## Performance
103+
104+
**WARNING** Be aware that **Relations** relies on a schema generated from the **Schemas**
105+
library. While this process is relatively quick, it will cause a noticeable delay if a page
106+
request initiates the load. The schema will attempt to cache to prevent this delay, but
107+
if your cache is not configured correctly you *will* experience noticeable performance
108+
degradation! The recommended approach is to have a cron job generate your schema regularly
109+
so it never expires and no user will trigger the un-cached load, e.g.:
110+
```
111+
php spark schemas database model file -export cache
112+
```
113+
114+
See [Tatter\Schemas](http://github.com/tattersoftware/codeigniter4-schemas) for more details.

0 commit comments

Comments
 (0)