1. mike S
  2. PowerServer
  3. Monday, 5 June 2023 21:38 PM UTC

Are these values read from the pb.ini in powerserver?

If so, then i do want to deploy the pb.ini file with my powerserver application version.

[DataStore Behavior]
UseHwnd=no
[Data Window]
ACCESSIBILITY=0

 

Just looking at things that may be different (slower) in powerserver 2022 vs 2020.

 

 

 

Angie Liu@Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 June 2023 11:52 AM UTC
  2. PowerServer
  3. # 1

Hi Mike;

 

Suggestions about the failure of Datastore creation:

  1. Use the packet capture tool (Fiddler) to track which request failed to execute.
  2. Set the log level to the information level, and analyze with the output information before the error to see if it can help you locate the datastore creation problem.

 

About error log output optimization: We are also paying attention to the error output optimization of the log. During the Beta, we optimized the error output of DataWindow and ESQL. Regarding the dynamic creation of DataWindow: when there is an error, we plan to output the original dynamic creation syntax in the log. Let us know if you have better suggestions.

 

Regards

Angie

Comment
  1. mike S
  2. Tuesday, 6 June 2023 12:54 PM UTC
I added my own logging extra log info when i create a datastore - which *should* provide that info in build 1900 for the failed create of the datastore I think that extra log info sounds right when there is an error.



Can you comment on whether those settings in pb.ini file are supported with powerserver 2022? Are they supposed to do the same things as regular PB client/server?



also, the bug report for

[DataStore Behavior]

UseHwnd=no



https://www.appeon.com/standardsupport/search/view?id=10381

  1. Helpful
  1. Angie Liu@Appeon
  2. Wednesday, 7 June 2023 02:31 AM UTC
Hi Mike,



The setting in PB.ini is supported in PowerServer too. We will analyze the issue based on the information you provided in the ticket.



Regards

Angie

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 5 June 2023 23:53 PM UTC
  2. PowerServer
  3. # 2

Hi Mike;

 I have always have deployed a similar PB.ini with my PowerClient & PowerServer apps built with the STD Framework starting in PB/PS2021 through to PB/PS 2022 R2 beta today with no such DS issues. 

Very weird!

Regards ... Chris 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 6 June 2023 02:02 AM UTC
Both PC & PS apps should benefit from the PB.ini settings to lower GUI overhead and lower memory overhead.
  1. Helpful
  1. mike S
  2. Wednesday, 7 June 2023 14:39 PM UTC
what i've found is that:



[DataStore Behavior]

UseHwnd=no



makes my screens open about 30% faster (under 2 seconds vs just over 3 without it). these screens use a number of nvo's that have datastores in them that all get created.

However, i have batch load processes that error on create of datastore from sql (this bug is being worked on by appeon).



ACCESSIBILITY=0 setting doesn't seem to make any difference at all. in c/s it mainly helps speed things up when closing a datawindow with a huge number of rows/pages.



this is build 1900
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 7 June 2023 17:19 PM UTC
Hi Mike;

The "ACCESSIBILITY=0" setting would no longer make any difference in PB 2022 Apps as this setting internally is now OFF by default.

Regards ... Chris
  1. Helpful 1
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 5 June 2023 22:13 PM UTC
  2. PowerServer
  3. # 3

i put the pb.ini file in the user install directory

C:\Users\<user>\AppData\Roaming\PBApps\Applications\<myapp.com_appname>

 

and ran an import process that i can rerun.  I have run it many times, so i have start and end times of this process.

 

with the PB.ini file, i now get an error in the web api:

2023-06-05T21:58:02.629998303Z fail: PowerServer.Api.ServerApiController[0]
2023-06-05T21:58:02.630047916Z 'PowerServer.Api.ServerApiController.DataStoreUpdate (PowerServer.Api)' get result (
2023-06-05T21:58:02.630055711Z {
2023-06-05T21:58:02.630060440Z "IsSuccess": false,
2023-06-05T21:58:02.630064167Z "RequestId": null,
2023-06-05T21:58:02.630067523Z "AppName": "<my app name>",
2023-06-05T21:58:02.630071401Z "NameSpace": "my app namespace>",
2023-06-05T21:58:02.630075118Z "ErrorCode": 0,
2023-06-05T21:58:02.630078754Z "ErrorMessage": "Failed to create the datastore"
2023-06-05T21:58:02.630082201Z }).

 

tried it 3 times, got this error 3 times.  (the process creates a lot of datastores, but only gets this error once).

 

removed the pb.ini file and ran it again: no error.

 

so it seems it DOES do something, but not necessarily a good something.

 

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.