Questions tagged as 'desempenho'

1
answer

How to prevent a simple query from locking the entire MySQL database

I have an application in Rails that uses a MySQL database with a table with millions of rows. Sometimes it happens that some part of my application does a very heavy query, locking all the rest of the application. How do I prevent these pesky qu...
asked by 13.08.2014 / 02:53
1
answer

Importing specific modules is faster / more performative than importing everything (with the asterisk)?

In Python, since when I realized that it is possible to import specific functions or classes of a module, I have always chosen to do so. One of the reasons is readability. The other reason I'm not sure, so I wanted to get this question: performa...
asked by 09.11.2016 / 17:57
1
answer

Improved C-code performance

I had a test where the question was: Considering that the periods of history are four: (1) a period prior to 4000 BC; (2) from 3999 BC to 476 AD; (3) from 477 AD to 1789 AD; and (4) after 1790 AD. Note that BC corresponds to BC...
asked by 13.05.2016 / 22:46
1
answer

What is the average cache time for static files?

What is the average cache expiration time for slightly updated static files? Are there techniques or recommendations that can help me in determining expiration time? An example would be: www.apple.com/scripts/libs/ www.apple.com/css/libs/...
asked by 05.03.2015 / 04:48
1
answer

Excessive use of pens C # [closed]

Good morning, friends, I'm developing an application that should draw 4 graphics (for now), to draw the way you want it to need to redraw the graphics several times and update them. With too much drawline, performance drops. When I stop drawi...
asked by 18.12.2018 / 15:15
1
answer

Why does Python not use 100% of the processor?

I'm developing a Python application where in some snippets, it requires a lot of CPU for calculations. However, I realize that even at these "bottleneck" points, the CPU never reaches more than 50% use. Of course the program slows down, wh...
asked by 06.10.2018 / 18:57
1
answer

Oracle Relationship Query Query

I have a program to look for records dependencies to proceed with deletion of data here in the company. We support some banks but in Oracle the query is processed very slowly (about 10 to 15 seconds for each table in remote production ban...
asked by 04.06.2014 / 14:18
1
answer

How to improve the performance of a key search?

Given that TDictionary exposes only ways to retrieve value through the key, I have the following algorithm to fetch a key from its value: var Table: TDictionary<Int64, Extended>; function KeyOf(Value: Extended): Int64; inline...
asked by 25.06.2016 / 02:32
1
answer

More performative way to return data to View

In a view where we return a list of objects, and we need to demonstrate the quantity, such as a small report, using some conditions. What is the most performative way to return data to view ? Explaining better. When we return an obj...
asked by 24.07.2015 / 19:40
1
answer

How to improve the performance of a foreach

I'm consuming a webservice , which has at least 5557 records. The problem is after consuming. I have to add the records in my database, and for that, I have to make a foreach , which ends up hindering the performance a litt...
asked by 22.12.2014 / 17:09