Fixing Entify defects
I fixed two defects from Entify today.
- Relation name must start with uppercase letter or generated code doesn’t compile
- EntityContext does unnecessary lazy loads when handling entities
The first one was fixed simply by disallowing invalid relation names. Now Entify visual designer gives warning if invalid name is tried to be use as relation name. Before the fix, it didn’t say anything and the generated code didn’t compile. The second one was fixed by removing lazy load calls when they were not needed.
Below is a rerun results of the simple performance tests I introduced in earlier blog post. There are minor improvments after these fixes, but nothing spectacular.
| Operation | Time spent by Entify |
| Added 100 artists, 1000 albums, 15,000 tracks. | 12.693 sec |
| Requested tracks with genre filter. Returned 7500 tracks | 2.937 sec |
| Requested tracks with two filters. Returned 4154 tracks | 1.632 sec |
| Requested artist by name. | 0.007 sec |
| Requested album by name. | 0.010 sec |
