1. Daniel Seguin
  2. PowerBuilder
  3. Thursday, 28 August 2025 02:48 PM UTC

Hello,

The answer I have received come copilot does make senses

I would like to validate with some human powerbuilder gury.

At my client, the app we are migrating to sql  server from sybase has a tone of reports, with screens to allow users to filter data but of course they could select "ALL".  This application is over 20 years old and the client does not want to archive data, they want to keep everything.

I think I should be adding check on the query to advise them that they should refine the query will return a large quantity of rows which might take a long time and potentially crash the application.

Any other ideas anyone?

 

in powerbuilder datawindow is there a limit of row that can be retrieved, example i just retrieved rows into a data window with 1212380 rows. As soon as i click inside the datawindow to view the results, powerbuilder crashed
Copilot said:
 
Copilot
 

Yes, PowerBuilder does have practical limitations when retrieving a very large number of rows into a DataWindow, even if there isn’t a hard-coded row limit. Retrieving 1,212,380 rows is extremely heavy and can easily cause PowerBuilder to crash or become unresponsive due to:

 Key Factors That Can Cause Crashes:

  1. Memory Usage: Each row consumes memory. With over a million rows, you may exceed available memory, especially if the DataWindow has many columns or complex formatting.
  2. Rendering Overhead: Clicking inside the DataWindow triggers rendering and possibly recalculations (e.g., expressions, computed fields), which can spike CPU and memory usage.
  3. GDI Object Limits: Windows has limits on GUI resources like GDI objects. A large DataWindow can exceed these limits, causing crashes.
  4. PowerBuilder Runtime Limits: While not officially documented, older versions of PowerBuilder (especially pre-2019) are more prone to instability with large datasets.

 Recommendations to Avoid Crashes:

  • Use Pagination: Retrieve data in chunks (e.g., 10,000 rows at a time) using SQL LIMIT/OFFSET or stored procedures.
  • Use External DataWindow: If you don’t need full interactivity, consider using an external DataWindow and populate it manually.
  • Disable Auto-Compute: Turn off automatic calculations or expressions that may be triggered on click.
  • Optimize Columns: Reduce the number of columns and remove unnecessary formatting or computed fields.
  • Use Filters: Let users filter data before retrieval to reduce row count.

Who is viewing this page
Responses (2)
  1. Likes
  2. Latest
  3. Oldest
Loading...

Find Questions by Tag

.EXE .NET 6.0 .NET Assembly .NET Core 3.1 .NET Core Framework .NET DataStore .NET Std Framework 32-bit 64-bit ADO.NET AEM AI Algorithm Amazon AWS Android Apache API APK App Store App Store (Apple) Appeon Workspace Appeon Xcelerator Plug-in Architecture Array ASE Asynchronous Methods Authentication AutoBuild AutoCompiler Automated Testing Automation AutoScript Azure Barcode Base64 Batch BigData BLOB Branch & Merge Browser Bug Build Button C# C# Class Importer C# Editor C# Model generator Calendar Camera Certificate Chrome Citrix Class Client Client/Server Cloud Cluster Collection COM Command Line Compiler Compression Computed Field Configuration Controls Cookies Cordova Crash Cross-Platform Crosstab CSharpAssembly CSharpObject CSS CSV Cursor Data Database Database Driver Database Painter Database Profile Database Provider DataObject DataSource DataStore DataStore (C#) DataStore (PS) DataType DataWindow DATE DATETIME DB2 Debug Debugger Debugging Deployment Design DLL DO-WHILE Dockable Docker Documentation DOUBLE Download DPI DragDrop Edge Edit Style Editor Elevate Conference Email Embedded SQL Emulator Encoding Encryption Enhancement Request Entity Entity Framework ERP Error Event Event Handler Event Handling Excel Exception Export Expression External Functions F# Field File File Access Filter Firefox Firewall Font FOR-NEXT Foreground Format Function Garbage Collection GeoLocation Git Graph HANA Hash Header HTML/5 HTTP/S HTTPClient Icon IDE Identity IIS IMAPI Import InfoMaker Inheritance Installation Integer IntelliSense Interface Internet Internet Explorer iOS IPA iPad iPhone IWA J# Java JavaScript JBoss JDBC JOIN JSON JSONGenerator JSONParser Kestrel Label Lambda Large File LDAP Library License LINQ Linux OS Load Balancing Localization Localized PBVM Log In Log Out Logging LONG LONGLONG macOS MAPI Maps MDI Memory Memory Leak Menu Merge MessageBox Messagging Method Migration MIME TYPE Mobile Model ModelStore ModelStore (C#) MSOLEDBSQL Multi Threading MVC MySQL n-Tier Namespace NativePDF NVO OAuth ODATA ODBC Office Offline OLE OLEDB Online Open Source OpenAPI OpenSSL Oracle OrcaScript Other Outlook Output Package Parameter Patch PayPal PB Classic PB Native PB.NET PBC PBD PBDOM PBG PBJVM PBL PBNI PBORCA PBVM PBX PDF Performance Permission PFC Picture Pipeline Play Store (Google) Plugin Popup Port POST PostgreSQL PowerBuilder PowerBuilder (Appeon) PowerBuilder (SAP) PowerBuilder Compiler PowerBuilder Runtime PowerClient PowerScript (PS) PowerScript IDE PowerScript Migrator PowerServer PowerServer Mobile PowerServer Toolkit PowerServer Web PowerServerLabel Print Properties Proxy Publish PULL PUSH Query Regression Release Renew Resize Response REST Retrieve RibbonBar RibbonBar Builder RibbonView Rich Text Roadmap RPC Runtime Packager SaaS Scaffolding Script SDI SDK Security Server Service Session Single Sign-on Size SMTP SMTPClient SnapDevelop SOAP Solution Sort Source Code Speech Recognition SQL SQL Anywhere SQL Server SqlBuilder SqlExecutor SQLite SqlModelMapper Storage Stored Procedure Subscription SVN Swagger Syntax TabbedBar TabbedView Tablet TabPage Target TE Control Testing Text TFS Theme TIME Timer TLS/SSL Tomcat TortoiseGit TortoiseSVN Transaction Transparency Trial Trigger TRY-CATCH TX Control Type UI ULONG UltraLite Uninstall Unit Test Unit Testing UNIX OS Update Upgrade Upload URL User Center User Object UWP Validation VARCHAR Variable Versioning Visual Studio Visual Studio Code VM Voice Warning WCF Web API Web Extensions Web Service WebBrowser WebForms WebLogic WebSphere WildFly WinAPI Window Windows OS WinForms Wizard Workgroup Workspace WPF XCODE XHTML XML Zoom

Helpful?

If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.