question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GeometryCursor:: estimateMemorySize

See original GitHub issue

Similar to #156, we would like to investigate whether it’s possible to add a similar API to GeometryCursor to enable us to estimate the memory size for long running operations involving GeometryCursors. For example, it would be nice to get a point in time estimate of how much memory OperatorUnionCursor is using, for similar reasons as stated in #156.

It would have the same signature as what is found in OGCGeometry:

GeometryCursor unioningCursor =  OperatorUnion.local().execute(input, null, null);
// ...
System.out.println(unioningCursor.estimateMemorySize());

Are there any objections to adding such an API?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stolstovcommented, Aug 28, 2018

@tdcmeehan Could you explain the pattern how you are planning to use this?

Maybe you should do external batching. For anything large you may want to batch geometries spatially.

0reactions
tdcmeehancommented, Aug 28, 2018

The pattern is essentially the same as ST_Aggr_Union. I’ll do the batching outside of the library. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

in-process .da searchcursor question - Esri Community
I have a script that uses the arcpy.da.SearchCursor method. I am using v10.1 SP1. The script basically runs the SelectByLocation tool in a ......
Read more >
In Java, what is the best way to determine the size of an object?
I mean to say all the object REFERENCE needs only 4 bytes of memory. It may be String reference OR Double object reference,...
Read more >
Data access using cursors—ArcGIS Pro | Documentation
A cursor is a data access object that can be used to either iterate over the set of rows in a table or...
Read more >
PL/SQL and Oracle database instance memory - LinkedIn
PL/SQL supports its own “session cache of cursors”, i.e. it decides when which cursor should be released. The maximum number of cursors in...
Read more >
Femap Tips and Tricks
Max VBO MB – FEMAP will determine how much RAM is available on the graphics card, then allow you to choose how much...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found