我想将记录存储在一个表中,然后向其中添加一个索引
id GFR Scans? variable Date of renal scan: Type of renal scan: GFR mL/1.73 sq.m Pre/Post tx?
1: 1010001 Yes 1 2005-12-07 DTPA 18 Pre
2: 1010002 Yes 1 2007-12-05 DTPA 13 Pre
3: 1010004 Yes 1 2009-03-18 DTPA 68 Post
4: 1010005 Yes 1 2005-08-16 DTPA 117 Post
5: 1010006 Yes 1 2007-10-11 DTPA 46 Pre
---
98: 1010002 Yes 17 <NA> <NA> NA <NA>
99: 1010004 Yes 17 <NA> <NA> NA <NA>
100: 1010005 Yes 17 <NA> <NA> NA <NA>
101: 1010006 Yes 17 <NA> <NA> NA <NA>
102: 1010007 No 17 <NA> <NA> NA <NA>
当所有行由class StoreRow implements Illuminate\Contracts\Queue\ShouldQueue
...
dispatch(new StoreRow(new Row(1, 'title', 10)))
dispatch(new StoreRow(new Row(1, 'other title', 10)))
dispatch(new StoreRow(new Row(1, 'simple title', 10)))
作业存储时
我想发送到队列StoreRow
作业。
是否有不基于数据库的解决方案(设计模式)
https://github.com/spatie/laravel-event-projector?我正在寻找基于队列的解决方案,以避免新的依赖关系