All Questions
Tagged with optimizer or optimization
39,915 questions
-1 votes
0 answers
16 views
How to correctly identify consecutive anomalous segments in time-series data in DolphinDB?
I'm working with IoT device sensor data. The table structure is as follows (TSDB engine, partitioned by date and device): // Sensor real-time data table db_date = database("", VALUE, 2024....
Best practices
0 votes
0 replies
36 views
What are safe techniques to reduce latency in a backend application without compromising correctness?
I am working on a backend application and trying to reduce response latency, but I want to avoid optimizations that could introduce correctness issues. By correctness, I mean preserving accurate ...
0 votes
0 answers
41 views
SAP ABAP CL_SALV_TABLE column optimization not working
I'm displaying an ALV using CL_SALV_TABLE in a custom container, but even though I call lo_columns->set_optimize( abap_true ), the header columns all appear the same width and are not auto-adjusted ...
2 votes
1 answer
75 views
How can I speed up vertices showing and animation?
I made my own 3D render with Pygame and added basic .obj import, but even a teapot lags a lot because vertices 2d array's length is long. How can I optimize code as much as possible inside game loop? ...
Best practices
1 vote
1 replies
88 views
How do developers usually handle database optimization for growing WordPress sites?
I’m working with a WordPress website that has been running for a few years and the database size has grown significantly. I noticed that some queries and page loads are slower than before. While ...
Advice
2 votes
1 replies
81 views
How to decide number of partitions using repartition vs coalesce in Apache Spark for optimization?
How to decide I am trying to understand how to properly use repartition and coalesce in Apache Spark, especially for performance optimization. From my understanding: repartition can increase or ...
Advice
0 votes
1 replies
40 views
Sorting Multi Variable Data into Efficient Groups
I have an excel spreadsheet of results for the analysis of beams in a building. For each beam I have 6 different loads for 6 different situations. These loads are not linearly related, sometime a beam ...
Advice
0 votes
4 replies
80 views
DDD Aggregate Roots: How to avoid loading unused child entities without tightly coupling to the ORM?
I am implementing Domain-Driven Design (DDD) and facing a problem: balancing database performance with clean domain modeling. I want to stop loading child entities that I don't need when getting an ...
1 vote
1 answer
133 views
Optimizing Exact Filtered Pagination Count (COUNT(*)) on MySQL with Dynamic JSON Filters in Spring Boot API
Problem Statement: We are running a Java/Spring GET/POST getAll pagination API on top of MySQL in AWS RDS and need help optimizing exact filtered counts Current state: The main dataset is courses with ...
Best practices
0 votes
4 replies
51 views
What is the most efficient way to maintain a real-time COUNT(DISTINCT column) on a large PostgreSQL partitioned table?
I have a PostgreSQL table foo partitioned by date (monthly partitions). The table currently contains ~13 million rows and continues to grow. This query runs any time someones opens the dashboard of ...
2 votes
1 answer
64 views
PyTorch ValueError: optimizer got an empty parameter list when building a Logistic Regression Model
I tried making a logistic regression model using nn.Module class LogisticRegressionModel(nn.Module): def __init__(self, input_dim= None) -> None: super().__init__() if input_dim ...
Advice
1 vote
8 replies
131 views
Portably disabling FMA for a single function
For robust ray–triangle intersection, it turns out that the following must be exactly true in floating-point math: a*b - c*d = -(d*c - b*a) There is no problem if this is computed as two ...
1 vote
2 answers
117 views
Is there a numpy (or scipy, or whatever) vectorized function that can sample from an array of probabilities?
I need a function that behave like np.random.choice, but that takes the argument "p" to be a 2-dimension array, of which each row is a probability. The function should return a sample from ...
1 vote
1 answer
39 views
AMPLpy - battery optimization problem - How do I program LP? Not quite an LP
I’m trying to maximize the profit of a battery that can charge r_i or discharge q_i, with wholesale electricity prices P_elec,i, within a n=24 hour period. (eta is just the efficiency of the battery, ...
4 votes
0 answers
66 views
cudaMemcpyAsync (P2P D2D) serializes with kernel execution
Hi all — I’m debugging an unexpected ordering/progress issue with peer-to-peer device copies and I’d like help understanding what CUDA/driver/runtime behavior could explain it. Setup Single node, 2 ...