Skip to content

Commit

Permalink
fix: tenant db
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed Nov 18, 2023
1 parent 426db7f commit 9c5ccad
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mtxs/t0.cds
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ namespace cds.xt;
type TenantID : String(80);

entity Tenants {
key ID : TenantID;
metadata : String;
key ID : TenantID;
metadata : String;
createdAt : Timestamp @cds.on.insert: $now;
modifiedAt : Timestamp @cds.on.insert: $now @cds.on.update: $now;

}

entity Jobs {
key ID : UUID; // REVISIT: cuid from cds/common?
status : Status default #RUNNING;
status : Status default #QUEUED;
op : String(255);
error : String(255);
result : LargeString;
Expand All @@ -25,7 +28,7 @@ entity Tasks {
tenant : TenantID;
op : String(255);
error : String(255);
status : Status default #RUNNING;
status : Status default #QUEUED;
createdAt : Timestamp;
database : String(255);
}
Expand Down

1 comment on commit 9c5ccad

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cds-mysql benchmark

Benchmark suite Current: 9c5ccad Previous: c618983 Ratio
query#select_only 39400 ops/sec (±1.41%) 27437 ops/sec (±1.94%) 0.70
query#select_limit 38618 ops/sec (±1.43%) 26509 ops/sec (±2.39%) 0.69
query#select_projection_where 15080 ops/sec (±3.22%) 11408 ops/sec (±1.23%) 0.76
query#select_where_expr 9118 ops/sec (±2.52%) 8213 ops/sec (±1.43%) 0.90
query#select_for_update 38622 ops/sec (±1.42%) 27431 ops/sec (±1.63%) 0.71
query#select_for_update_wait 38364 ops/sec (±1.33%) 27637 ops/sec (±1.15%) 0.72
query#select_from_inner_table 20357 ops/sec (±2.12%) 15036 ops/sec (±1.62%) 0.74
query#upsert_into_entries 37196 ops/sec (±0.49%) 24554 ops/sec (±2.56%) 0.66
query#insert_into_entries 36237 ops/sec (±1.80%) 24339 ops/sec (±1.59%) 0.67
query#insert_into_as_select 30247 ops/sec (±2.36%) 22023 ops/sec (±1.52%) 0.73
query#update_where_set 19881 ops/sec (±1.74%) 14655 ops/sec (±1.98%) 0.74
query#update_with 30841 ops/sec (±1.89%) 22331 ops/sec (±1.35%) 0.72
query#delete_all 40149 ops/sec (±1.76%) 27922 ops/sec (±1.20%) 0.70
query#delete_simple_where 24189 ops/sec (±1.82%) 17899 ops/sec (±1.48%) 0.74
query#delete_complicated_where 19793 ops/sec (±1.74%) 14619 ops/sec (±1.49%) 0.74
typeorm#build_typeorm_entity_for_integration 17.83 ops/sec (±5.70%) 16.19 ops/sec (±5.89%) 0.91
typeorm#build_typeorm_entity_for_fiori 22.12 ops/sec (±2.10%) 19.44 ops/sec (±0.72%) 0.88

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.