-
Notifications
You must be signed in to change notification settings - Fork 2
Improvement/web api framework optimization #17
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
base: production/beta
Are you sure you want to change the base?
Improvement/web api framework optimization #17
Conversation
Previously certain attributes were fetched from the database for every single record. Now these properties are defined on object initialization and only the property is retrieved for each find. Should give a pretty good performance increase.
Applications that support sql filters can now use them to optimize constraints a little.
Allow developers to determine what index they want to use for finds on a child table.
It is now possible to pass query parameters twice. This allows you to apply two types of constraints to the same column
No longer create and destroy handles during a for loop. The handle will be created once and then be reused with InitializeJsonObject again. This should help improve performance
Implemented pagination for the cRestDataset. It is now possible to pass a offset in the query parameters. Since data dictionaries don't actually support an offset it still has to find the rows, it just skips over the first few depending on the offset.
| // This determines how many records we return during a get all | ||
| Property Integer piLimitResults 0 | ||
| // This determines how many records to skip during a GET request. | ||
| Property Integer piOffset 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be runtime specific and not in a design-time object-class.
|
|
||
| // Grabs the old psSQLFilter and restores it | ||
| { Visibility=Private } | ||
| Property String psOldSQLfilter "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be runtime specific and not in a design-time object-class.
| //If there is no psApiRoot we retrieve it from IIS | ||
| If (sApiRoot = "") Begin | ||
| Get ServerVariable of ghoWebServiceDispatcher "SERVER_NAME" to sServerName | ||
| Get ServerVariable of ghoWebServiceDispatcher "URL" to sApiRoot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future see if we can check a forwarded for server name and url as well.
This pull request features the following improvements:
Closes #15