database-performance Questions
1
I am using the SQL module of Qt 5.3.1 (Win 7, VS2013) to insert data into a MySQL 5.6 database. After I noticed some performance issues I execute three test code snippets and measured their runtime...
East asked 10/9, 2014 at 12:9
2
I'm looking to create denormalized access to data essentially for reporting purposes (and thus to avoid joins and gain performance). I have two solutions in mind, but I'm looking for (a) other pote...
Theresita asked 8/8, 2014 at 20:37
3
My Google cloud sql table have 1126571 rows currently and adding minimum 30 thousand every day.When execute the query :
select count(distinct sno) as tot from visits
sql prompt it will generate ...
Madancy asked 19/10, 2012 at 9:5
1
I am using MySQL Connector/Net 6.5.4 with LINQ to entities, and I frequently get terrible query performance because the entity framework generates queries that use derived tables.
Here is a simpli...
Rea asked 2/11, 2012 at 18:29
2
NewRelic gives nice database analyses, however it seems to track only the web app's transactions.
I have independently managed servers which query and load my Heroku postgresql database. Is there ...
Larentia asked 24/9, 2013 at 6:21
0
Does anyone know if there is a difference in performance for left join vs inner join in Hive, with Map Join enabled via hive.auto.convert.join=True?
The reason I ask, per https://cwiki.apache.org...
Etty asked 18/6, 2014 at 21:45
4
Solved
I want to select to retrieve person and also further make some inserts, deletes and updates.
If I want retrieve person who lives in Brazil what will be the best approach?
Make 2 foreign key city ...
Forepaw asked 12/6, 2014 at 19:41
2
I'm reading this article on Wikipedia: http://en.wikipedia.org/wiki/Shard_(database_architecture) trying to find the major difference between these 2 techniques. Here is what I found:
Horizontal...
Kuibyshev asked 1/6, 2014 at 8:1
2
Solved
I'm using the RDS database from amazon with a some very big tables, and yesterday I started to face 100% CPU utilisation on the server and a bunch of slow query logs that were not happening before....
Murchison asked 30/5, 2014 at 14:21
2
I have quite a simple query that is very slow. Entity Framework Profiler says it takes about 100 ms.
dbContext.Users.Single(u => u.Id == userId);
After trying around a bit I found a query tha...
Rolfrolfe asked 7/5, 2014 at 13:5
3
Solved
In SQL Server, stored procedures execution plans are cached but view execution plan are never cached. Is that true? If yes, why does SQL Server not cache view execution plans?
If a optimizer is ta...
Seward asked 3/5, 2014 at 15:2
1
Solved
I have a very simple query that returns a couple thousand rows with only two columns:
SELECT "id", "value" FROM "table" LIMIT 10000;
After issuing sql.Query(), I traverse the result set with the...
Stuyvesant asked 31/3, 2014 at 22:26
2
Solved
I'm running a cron task which makes lots of queries to a MySQL server. The big issue is that the server runs extremely slowly sometimes.
I've got a relatively big query with 4 tables left joined b...
Oeildeboeuf asked 28/3, 2014 at 9:27
2
Solved
I had a query like this, that should be executed after each MySQL actions. This query is now slowing down page loading because the data increased, I did everything like proper indexing, but the que...
Cutpurse asked 13/2, 2014 at 9:15
1
Solved
The queries are performed on a large table with 11 million rows. I have already performed an ANALYZE on the table prior to the query executions.
Query 1:
SELECT *
FROM accounts t1
LEFT OUTER JOIN...
Population asked 16/1, 2014 at 6:29
3
Solved
I have always heard people saying bad about using cursors and this is especially in Microsoft SQL Server as they are very slow.
Is this the case with Cursors on MySQL as well? Does cursors in...
Burrton asked 9/8, 2011 at 15:20
2
I'm facing a problem with MS SQL Server 2008 which is:
When I execute a query using a hard-coded string as a parameter, my query run fast but when I use a string parameter instead, the query takes...
Concent asked 28/8, 2013 at 19:5
2
So my understanding of slow query log is that it logs info about all those queries that took >= time (in secs) that we have set in my.conf file.
Now lets take 3 cases of 3 different SELECT queries...
Barbbarba asked 26/9, 2013 at 18:43
3
Solved
I'm attempting to write a search functionality for a website, and I've decided upon an approach of using MySQL temporary tables to handle the data input, via the query below:
CREATE TEMPORARY TABL...
Castigate asked 18/9, 2013 at 6:39
2
Solved
Given this SQL query in MySQL:
SELECT * FROM tableA WHERE tableA.id IN (SELECT id FROM tableB);
Does MySQL execute the subquery SELECT id FROM tableB multiple times for each row in tableA?
Is t...
Brynnbrynna asked 13/9, 2013 at 16:12
3
Solved
I'm implementing an app that keeps track of how many times a post is viewed. But I'd like to keep a 'smart' way of keeping track. This means, I don't want to increase the view counter just because ...
Atchison asked 28/9, 2011 at 19:16
1
Solved
I need to store several billion small data structures (around 200 bytes each). So far, storing each element as a separate document is working well, with Mongo providing around 10,000 results per se...
Acoustician asked 19/7, 2013 at 17:58
1
What is the fastest way to load 10,000 rows from a SQLite database into memory? Each row has 1 text and 4 integers. Currently, I'm doing this:
while(!cursor.isAfterLast()) {
cursor.copyStringToBu...
Stagnant asked 10/6, 2013 at 13:16
2
Solved
When I create DECIMAL column with default precision setting, in H2 web console this column is defined as DECIMAL(65535, 32767), command "show columns from ..." gives me DECIMAL(65535).
Decimal dat...
Deciliter asked 29/4, 2013 at 9:7
2
Solved
So I have a table with a large dataset and this table has a three columns that I would like to drop.
The question is: how will Postgres deal with it?
Will it walk through every entry or will it ju...
Hannelorehanner asked 29/3, 2013 at 8:44
© 2022 - 2024 — McMap. All rights reserved.