Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Thoughts #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions POC-iterations/M2Mlooping/LoopR&DIdeas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
November 10, 2023
R&D Discussion
Neil Beesley and Kip Twitchell

Michael Shapiro talked this week of a need for many to many processing capabilities. Neil asked how we might satisfy this need in the most simple way. So we spent an hour discussing it.

Objective:
- Smallest number of changes to existing tools
- No required exits

Proposal:
- Workbench changes:
- New type of LR Index: Non unique key
- New Logic Text Keyword: Next Lookup {Join.ID}
- MR91
- New LUNX (replacing LUSM) to target LR
- Perhaps an additional LKC before LUNX giving search mode
- 0 = Start Search
- 1 = Next Record
- CFNX for Next Lookup
- true row pointing back up to LUNX
- false row as the associated Join false row
- MR95
- Allow non-unique table load, removing binary search path build
- Model code
- LUNX
- CFNX

Sample Logic Table:
RENX
NV
JOIN
LKE....
LKC = 0 for start search
LUNX
- Initial call finds first row in table for partial key given
- Branch not found if no match found (assuming beyond CFNX)
- Set next record pointer to next record in table
....
WR..
CFNX
- Change LKC = 1 to Next Record
- Test pointer to next record for equal to lookup key
- Test true, branch back to LUNX
- Test False, fall through

Assumptions:
- Each LKNX - CFNX operates a stack
- Nested sets are nested loops
Binary file not shown.