View AuthorBase.php
<?php
namespace AuthorBooks\Model;
require_once __DIR__ . '/AuthorSchemaProxy.php';
use Maghead\Schema\SchemaLoader;
use Maghead\Result;
use Maghead\Inflator;
use SQLBuilder\Bind;
use SQLBuilder\ArgumentArray;
use SQLBuilder\Universal\Query\InsertQuery;
use SQLBuilder\Driver\BaseDriver;
View AuthorBaseRepo.php
<?php
namespace AuthorBooks\Model;
require_once __DIR__ . '/AuthorSchemaProxy.php';
use Maghead\Schema\SchemaLoader;
use Maghead\Result;
use Maghead\Runtime\BaseModel;
use Maghead\Inflator;
use SQLBuilder\Bind;
use SQLBuilder\ArgumentArray;
use PDO;
View php-orm-benchmarks
|-------------------------------------------------------------------------------------------------------|
| Library | Insert | findPk | complex| hydrate| with | memory usage | time |
| --------------------------------:| ------:| ------:| ------:| ------:| ------:| ------------:| ------:|
| PDO | 72 | 12 | 29 | 69 | 220 | 1,689,176 | 0.41 |
| Maghead | 395 | 9 | 176 | 205 | 365 | 10,485,760 | 1.16 |
| | | | | | | | |
| LessQL | 366 | 70 | 377 | 364 | 363 | 10,078,872 | 1.55 |
| | | | | | | | |
| YiiM | 714 | 86 | 436 | 292 | 614 | 8,388,608 | 2.16 |
| YiiMWithCache | 693 | 83 | 435 | 303
View AuthorBaseRepo.php
<?php
namespace AuthorBooks\Model;
require_once __DIR__ . '/AuthorSchemaProxy.php';
use Maghead\Schema\SchemaLoader;
use Maghead\Result;
use Maghead\BaseModel;
use Maghead\Inflator;
use SQLBuilder\Bind;
use SQLBuilder\ArgumentArray;
use PDO;
View sharding.md

Defining shards

sharding:
  mappings:
    M_store_id:
      tables: ["orders"]
      key: "store_id"
      hash:
        target1: order_shard_1
View BookBase.php
<?php
namespace AuthorBooks\Model;
use LazyRecord\Schema\SchemaLoader;
use LazyRecord\Result;
use LazyRecord\Inflator;
use SQLBuilder\Bind;
use SQLBuilder\ArgumentArray;
use PDO;
use SQLBuilder\Universal\Query\InsertQuery;
use TestApp\ModelTrait\EBookTrait;
View typeloy.json
{
"sites":{
"staging": {
"servers": [{
"host": "",
"username": "",
"password": ""
}],
"env": {
"MAIL_URL":"smtp://support",
View gist:7c88e4fa9ecca7347e81a5a3571d93f0
Code move event for unknown code: 0x21213a24ae60
Code move event for unknown code: 0x21213a24eb00
Code move event for unknown code: 0x21213a26d2e0
Code move event for unknown code: 0x21213a29f280
Code move event for unknown code: 0x21213a2baf00
Code move event for unknown code: 0x21213a2c9580
Code move event for unknown code: 0x21213a2cb460
Code move event for unknown code: 0x21213a2e3840
Code move event for unknown code: 0x21213a2f3c80
Code move event for unknown code: 0x21213a43b060
View underscore.js
[disabled optimization for 0x366965bd9a81 <SharedFunctionInfo NativeModule.compile>, reason: TryFinallyStatement]
[disabled optimization for 0x366965be4131 <SharedFunctionInfo createUnsafeBuffer>, reason: TryFinallyStatement]
[disabled optimization for 0x366965be5031 <SharedFunctionInfo FastBuffer>, reason: Call to a JavaScript runtime function]
[didn't find optimized code in optimized code map for 0x30532ff0e359 <SharedFunctionInfo>]
[disabled optimization for 0x366965b4eeb1 <SharedFunctionInfo Join>, reason: TryFinallyStatement]
[disabled optimization for 0x366965b77961 <SharedFunctionInfo InternalizeJSONProperty>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x366965b77889 <SharedFunctionInfo CreateDataProperty>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x30532ff3b9c9 <SharedFunctionInfo>, reason: TryCatchStatement]
[didn't find optimized code in optimized code map for 0x30532ff16491 <SharedFunctionInfo debugs.(anonymous function)>]
[didn't find
View devel (1.3.5).txt
| \
| files.stat 0 ms (1)
| files.unlink 0 ms (1)
| files.readFile 1 ms (1)
| bundler.readJsImage 7 ms (1)
| JsImage#load 212 ms (1)
| files.writeFile 1 ms (1)
| ProjectContext prepareProjectForBuild........................18,349 ms (1)
| ├─ _initializeCatalog 566 ms (1)
| └─ _buildLocalPackages.......................................17,410 ms (1)