Possible bug with event and delete...limit ?

2014-09-23 Thread Johan De Meersman
kill them. I noticed, however, that the LIMIT statement I specified in the event wasn't present in the actual queries... Could that be a parser bug, or does the limit simply not show up in the process lists? Has anyone seen this before ? This is 5.5.30-1.1-log on Debian 64-bit. Tha

Re: using LIMIT without ORDER BY

2012-12-13 Thread Johan De Meersman
- Original Message - > From: "Akshay Suryavanshi" > I was referring to a condition when there is no index on the tables, > not even primary keys. If you have a lot of data in there, may I suggest you (temporarily) add a unique index and benchmark both methods? As I

Re: using LIMIT without ORDER BY

2012-12-13 Thread Akshay Suryavanshi
etera. > > The ONLY way to ensure consecutive queries return your data in the same > order, is specifying an order by clause. > > Apart from that, I personally prefer to avoid the limit 0,10 /limit 11/20 > technique, because a) rows might have gotten inserted and/or deleted, a

Re: using LIMIT without ORDER BY

2012-12-13 Thread Johan De Meersman
utive queries return your data in the same order, is specifying an order by clause. Apart from that, I personally prefer to avoid the limit 0,10 /limit 11/20 technique, because a) rows might have gotten inserted and/or deleted, and b) limit is applied to the full resultset. Instead, order by

Re: using LIMIT without ORDER BY

2012-12-12 Thread Akshay Suryavanshi
There's a confusion. I want to get all the data in table t by pages, using > Limit SQL without ORDER BY: > SELECT * FROM t Limit 0,10 > SELECT * FROM t Limit 10, 10 > ... > > Is it right without ORDER BY? > Is there any default order in table t, to make suer I can get all data i

RE: mysql - uppoer limit for doing simultaneous red/writes..

2012-07-16 Thread Rick James
elounge.net] > Sent: Saturday, July 14, 2012 11:19 AM > To: mysql@lists.mysql.com > Subject: Re: mysql - uppoer limit for doing simultaneous red/writes.. > > > > Am 14.07.2012 19:16, schrieb bruce: > > Hi. > > > > Considering a system, where I have a centraliz

Re: mysql - uppoer limit for doing simultaneous red/writes..

2012-07-14 Thread Reindl Harald
Am 14.07.2012 19:16, schrieb bruce: > Hi. > > Considering a system, where I have a centralized Mysql setup. I'm not > sure exactly what this should be called, single box, cluster, etc... > > But I'm looking to have a system of a a bunch of boxes, whihc run apps > that will access (read/write) t

mysql - uppoer limit for doing simultaneous red/writes..

2012-07-14 Thread bruce
Hi. Considering a system, where I have a centralized Mysql setup. I'm not sure exactly what this should be called, single box, cluster, etc... But I'm looking to have a system of a a bunch of boxes, whihc run apps that will access (read/write) to the different dbs/tbls on the mysql setup. I'm tr

Re: Why does the limit use the early row lookup.

2012-04-24 Thread Jan Steinman
determined > by a random value created only at the time of the query, what better > technique could they use than to materialize the table, sort the data, > then return the results? I agree that the common technique of ORDER BY RAND() LIMIT 1 is brain dead in its expectations. And yet, this

RE: Why does the limit use the early row lookup.

2012-04-24 Thread Rick James
: RE: Why does the limit use the early row lookup. > > > If you are doing Pagination via OFFSET and LIMIT -- Don't. Instead, > > remember where you "left off". > > (More details upon request.) > > Thanks for your answer. > > Can you tell us the be

RE: Why does the limit use the early row lookup.

2012-04-23 Thread Zhangzhigang
> If you are doing Pagination via OFFSET and LIMIT -- > Don't. Instead, remember where you "left off". > (More details upon request.) Thanks for your answer. Can you tell us the better approach about pagination to prevent to scan all table rows? How to use "l

RE: Why does the limit use the early row lookup.

2012-04-23 Thread Rick James
Shawn... ORDER BY RAND() LIMIT 10 Also assuming: Table >> 10 rows MEMORY is practical for tmp table in this case Here's a faster way: Keep an in-RAM "priority queue", truncating it at 10 items. Simply insert rows into it as you walk through the unsorted table. The eff

RE: Why does the limit use the early row lookup.

2012-04-23 Thread Rick James
y to avoid scanning 110 rows of something (data or index). If you are doing Pagination via OFFSET and LIMIT -- Don't. Instead, remember where you "left off". (More details upon request.) You can trick MySQL into doing "late row lookup" via a "self join": SELECT

Re: Why does the limit use the early row lookup.

2012-04-23 Thread shawn green
es a >> temporary table wil ALL data as example even with limit >> >> select * from table order by rand() limit 10; >> reads and writes the whole table to disk >> have fun with large tables :-) >> >> > When the Optimizer is told to sort a result set in t

Re: Why does the limit use the early row lookup.

2012-04-22 Thread Zhangzhigang
Why does not the mysql developer team to do this optimization? --- 12年4月20日,周五, Reindl Harald 写道: > 发件人: Reindl Harald > 主题: Re: Why does the limit use the early row lookup. > 收件人: mysql@lists.mysql.com > 日期: 2012年4月20日,周五,下午3:50 > > > Am 20.04.2012 04:29, schrieb 张志刚:

Re: Why does the limit use the early row lookup.

2012-04-20 Thread Reindl Harald
i know what it does, but it is simply idiotic select pri_key_field from table order by rand() limit 10; why in the world can this not be doe with an index? only the auto_increment field is involved soryy, no understanding it is idiotic that you need to "select pri_key_field from table

RE: Why does the limit use the early row lookup.

2012-04-20 Thread Rick James
Any ORDER BY (that cannot be done using an index) will gather all the data first, then sort, then do the LIMIT. Potential optimizations include * Keep a "pointer", not the whole data. (This may be practical for SELECT *, but not practical in other cases.) * Build a "priority q

Re: Why does the limit use the early row lookup.

2012-04-20 Thread Reindl Harald
Am 20.04.2012 04:29, schrieb 张志刚: > My point is that the limit can use late row lookup: lookup rows after > checking indexes to optimize the select speed. > > But the mysql optimizer do it with the early row lookup: lookup all rows > before checking indexes when the one fetch c

Re: how to limit the creation on disk temp tables

2011-09-27 Thread Johan De Meersman
- Original Message - > From: "Alexandr Normuradov" > > so far I could not find any answer on how to abort queries that > exceed certain size of internal temporary tables. I'm not sure there is. > On certain quite often scenarios these internal tables are being > converted to Myisam on d

how to limit the creation on disk temp tables

2011-09-27 Thread Alexandr Normuradov
Hello List, so far I could not find any answer on how to abort queries that exceed certain size of internal temporary tables. On certain quite often scenarios these internal tables are being converted to Myisam on disk tables. And that creates a high IO depending on situation. Putting tmpdir in

Re: Limit of Mysql

2011-02-16 Thread Johan De Meersman
can't be answered. On Wed, Feb 16, 2011 at 8:48 AM, Reindl Harald wrote: > there are no hard limits as long your hardware ist fast enough > > * memory, memory and agin: memory > * disk-speed > * cpu > > Am 16.02.2011 06:04, schrieb Adarsh Sharma: > > Dear all, >

Re: Limit of Mysql

2011-02-16 Thread Reindl Harald
there are no hard limits as long your hardware ist fast enough * memory, memory and agin: memory * disk-speed * cpu Am 16.02.2011 06:04, schrieb Adarsh Sharma: > Dear all, > > I want to know the upper limit of mysql after which Mysql-5.* fails to > handle large amount of data (

Limit of Mysql

2011-02-15 Thread Adarsh Sharma
Dear all, I want to know the upper limit of mysql after which Mysql-5.* fails to handle large amount of data ( 100's of GB or 100's of TB's ) . After which we have to move to some NoSQL databases ( Hadoop, Hive , Hbase). Currently we have 100 of GB's data in Mysql -5

Re: function to limit value of integer

2011-02-11 Thread Riebold, Philip
avis >>> >>> -Original Message- >>> From: Richard Reina [mailto:gatorre...@gmail.com] >>> Sent: Thursday, February 10, 2011 3:07 PM >>> To: mysql@lists.mysql.com >>> Subject: function to limit value of integer >>> >>&g

Re: function to limit value of integer

2011-02-11 Thread Johan De Meersman
ng > > system you want to use. > > > > -Travis > > > > -Original Message- > > From: Richard Reina [mailto:gatorre...@gmail.com] > > Sent: Thursday, February 10, 2011 3:07 PM > > To: mysql@lists.mysql.com > > Subject: function to limit valu

Re: function to limit value of integer

2011-02-11 Thread Richard Reina
gt; -Travis > > -Original Message- > From: Richard Reina [mailto:gatorre...@gmail.com] > Sent: Thursday, February 10, 2011 3:07 PM > To: mysql@lists.mysql.com > Subject: function to limit value of integer > > Is there a function that can limit the value of an integer i

RE: function to limit value of integer

2011-02-10 Thread Travis Ard
l.com] Sent: Thursday, February 10, 2011 3:07 PM To: mysql@lists.mysql.com Subject: function to limit value of integer Is there a function that can limit the value of an integer in a MySQL query? I am trying to write a query that scores someones experience. However, number of jobs can b

function to limit value of integer

2011-02-10 Thread Richard Reina
Is there a function that can limit the value of an integer in a MySQL query? I am trying to write a query that scores someones experience. However, number of jobs can become overweighted in the the query below. If someone has done 10 jobs vs. 1 that's a big difference in experience. But so

GROUP BY - INNER JOIN and LIMIT - how to get result

2010-11-29 Thread Arkadiusz Malka
LIMIT 1), (subquery which will return tblStatusy.Status, tblStatusy.Data ordered by Data DESC LIMIT 1,1), (subquery which will return tblStatusy.Status, tblStatusy.Data ordered by Data DESC LIMIT 2,1) Any idea how to get this? Best regards

Re: There is a ram limit?

2010-09-23 Thread Camilo Uribe
a >> > 64-bit >> > flavour of *nix on that box, I don't think you have to worry. >> >> Linux on 64-bits. > > Yes, but is the Linux (and your MySQL) itself also 64-bits ? :-p You *can* > use all of your ram on a 32-bit linux with the Bigmem trick, but that &

Re: There is a ram limit?

2010-09-22 Thread Johan De Meersman
y. > > Linux on 64-bits. > Yes, but is the Linux (and your MySQL) itself also 64-bits ? :-p You *can* use all of your ram on a 32-bit linux with the Bigmem trick, but that introduces quite a bit of overhead, and doesn't remove the per-process limit. A 32-bit MySQL will simply not be able

Re: There is a ram limit?

2010-09-22 Thread Camilo Uribe
or do I have to configure something else? > On Fri, Jul 9, 2010 at 4:44 AM, Camilo Uribe wrote: >> >> Hi: >> >> There is a limit in the amount of ram I could use for mysql? (I have a >> server with 96GB of ram) >> >> -- >> MySQL General Mailing List &

Re: Does putting a LIMIT on a DELETE clause make any difference?

2010-09-09 Thread Johan De Meersman
Correct. To verify this, simply create a select with the same structure as your delete - the execution plan will be similar. I do not believe limit will help you, however, as it is only applied after execution, when the full dataset is known. On Thu, Sep 9, 2010 at 8:06 AM, Ananda Kumar wrote

Re: Does putting a LIMIT on a DELETE clause make any difference?

2010-09-08 Thread Ananda Kumar
e_code_type` = '32', > `bite_subcode` = '21', `description_text` = 'Some random fault description > here.', `fault_id` = '11-1', `fault_impact_other_explain` = '', > `id_fault_area_impact` = '3', `symptom_lru_id` = &#

Does putting a LIMIT on a DELETE clause make any difference?

2010-09-08 Thread Daevid Vincent
7;232', `symptom_lru_subid` = '34', `sys_perf_affected` = '', `update_date` = '2010-09-09 00:04:29' WHERE id_fault_impact = '2495' LIMIT 1; DELETE FROM fault_impact_has_fault_system_impact WHERE id_fault_impact = 2495; INSERT INTO fault_impact_h

RE: Limit the size of a database. Rotate the log after this size

2010-08-20 Thread Travis Ard
Well, it wouldn't exactly limit the size of your tables, but you may want to look into creating a partitioned table to store your data. You could define your partition ranges to store a single day's worth of data or whatever granularity works best for you. Then, when you need to re

Limit the size of a database. Rotate the log after this size

2010-08-20 Thread Guillaume Blanc
Hello everyone, I've actually a database (MySAM) which is growing very quickly (1,3Go/hour). I would like to limit the size of the database but with a log rotation after the size is reached. Do you know a way to do it ? I thought of maybe a script who would delete the oldest entry when it re

RE: ORDER BY LIMIT issue

2010-08-04 Thread Jerry Schwartz
Because you are sorting the results, the LIMIT clause has to be applied after all of the eligible rows have been retrieved. There shouldn't be a big difference between 2 and 3, but there would be between 2 and 2. Regards, Jerry Schwartz Global Information Incorporated 195 Farmingto

Re: ORDER BY LIMIT issue

2010-08-04 Thread Kristian Davies
> Isn't it so that it firstly order the rows by id (index'ed?) and then scan >  it to pick the rows which satisfy the where clause? > > It stops when the result reaches the limit, otherwise scans the whole (27, > 000 rows scan). > > Then the response time with 2 ro

Re: ORDER BY LIMIT issue

2010-08-04 Thread Eigo Mori
Hi, > With the following query if I it returns 2 results it's fast .04s, if > it has less results than the limit it takes 1minute. > > Query: > select * from hub_dailies_sp where active='1' and date='2010-08-04' > order by id desc LIMIT 2; > >

ORDER BY LIMIT issue

2010-08-04 Thread Kristian Davies
With the following query if I it returns 2 results it's fast .04s, if it has less results than the limit it takes 1minute. Query: select * from hub_dailies_sp where active='1' and date='2010-08-04' order by id desc LIMIT 2; Show create table: http://pastebin.org/447

Re: There is a ram limit?

2010-07-08 Thread Johan De Meersman
This will mostly depend on your OS, really. Assuming you're running a 64-bit flavour of *nix on that box, I don't think you have to worry. On Fri, Jul 9, 2010 at 4:44 AM, Camilo Uribe wrote: > Hi: > > There is a limit in the amount of ram I could use for mysql? (I have a &g

There is a ram limit?

2010-07-08 Thread Camilo Uribe
Hi: There is a limit in the amount of ram I could use for mysql? (I have a server with 96GB of ram) -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: LIMIT/OFFSET to paginate results

2009-11-23 Thread Brent Baisley
I query a particular SectionID rows it should return all those rows. If I use "LIMIT x,10" it should return 10 rows beginning at record #x, but my doubt is: Does the OFFSET x assumes its value to be #x number of consecutive rows, or it is relative to the query results? For exa

Re: LIMIT/OFFSET to paginate results

2009-11-23 Thread Martijn Tonies
items into different sections. If I query a particular SectionID rows it should return all those rows. If I use "LIMIT x,10" it should return 10 rows beginning at record #x, but my doubt is: Does the OFFSET x assumes its value to be #x number of consecutive rows, or it is relative to

LIMIT/OFFSET to paginate results

2009-11-23 Thread Miguel Cardenas
items into different sections. If I query a particular SectionID rows it should return all those rows. If I use "LIMIT x,10" it should return 10 rows beginning at record #x, but my doubt is: Does the OFFSET x assumes its value to be #x number of consecutive rows, or it is relative to

Re: Query from HPM book to limit rows scanned doesn't appear to work as described

2009-03-12 Thread Baron Schwartz
out that, the Handler_read_rnd_next variable was > zero in both cases. > > Before running each query, I ran "flush status", then the query, then "show > session status like 'Handler%'".  The first one had a value of 207 for > "Handler_read_rnd_next&q

Re: Query from HPM book to limit rows scanned doesn't appear to work as described

2009-03-12 Thread David M. Karr
ECT actor_id FROM sakila.actor USE INDEX(PRIMARY) WHERE first_name = 'PENELOPE' LIMIT 1; Which supposedly would not do a full table scan, and it seems logical. The explain output for this is the following (tabs replaced with colon): id:select_type:table:type:possible_keys:key:key_len:ref:r

Re: Query from HPM book to limit rows scanned doesn't appear to work as described

2009-03-11 Thread Baron Schwartz
he alternative was this: > >   SELECT actor_id FROM sakila.actor USE INDEX(PRIMARY) WHERE first_name = > 'PENELOPE' LIMIT 1; > > Which supposedly would not do a full table scan, and it seems logical. > > The explain output for this is the following (tabs replaced wit

Query from HPM book to limit rows scanned doesn't appear to work as described

2009-03-11 Thread David M. Karr
this. The first sample query was: SELECT MIN(actor_id) FROM sakila.actor WHERE first_name = 'PENELOPE'; As described, this does a table scan, looking at 200 rows. The alternative was this: SELECT actor_id FROM sakila.actor USE INDEX(PRIMARY) WHERE first_name = 'PENELOP

NDB Cluster Storage Engine 6.2 data types limit

2009-01-15 Thread Claudio Nanni
All, I can't find the following informations on the MySQL Docs to see if there are limits on data types using NDB6.2: [1] What is the maximum length for one record of a NDB 6.2 storage engine table? (65k like MyISAM?) [2] Is it possible to use TEXT and BLOB fields without any problem? Thanks C

Re: Limit within groups

2009-01-07 Thread Baron Schwartz
On Wed, Jan 7, 2009 at 1:48 PM, Jerry Schwartz wrote: > > >>-Original Message- >>From: baron.schwa...@gmail.com [mailto:baron.schwa...@gmail.com] On >>Behalf Of Baron Schwartz >>Sent: Wednesday, January 07, 2009 9:54 AM >>To: Jerry Schwartz >>Cc:

RE: Limit within groups

2009-01-07 Thread Jerry Schwartz
>-Original Message- >From: baron.schwa...@gmail.com [mailto:baron.schwa...@gmail.com] On >Behalf Of Baron Schwartz >Sent: Wednesday, January 07, 2009 9:54 AM >To: Jerry Schwartz >Cc: mysql@lists.mysql.com >Subject: Re: Limit within groups > >On Tue, Jan 6, 2009

Re: Limit within groups

2009-01-07 Thread Baron Schwartz
On Tue, Jan 6, 2009 at 3:13 PM, Jerry Schwartz wrote: > Each account has multiple customers, and each customer has multiple sales. I > want to get the top 20 customers for each account. http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/ Keep reading, it ta

Re: Limit within groups

2009-01-06 Thread Phil
] On Behalf Of > >Phil > >Sent: Tuesday, January 06, 2009 3:41 PM > >To: Jerry Schwartz > >Cc: mysql@lists.mysql.com > >Subject: Re: Limit within groups > > > >How about something like > > > >select account,customer,max(total) from (

RE: Limit within groups

2009-01-06 Thread Jerry Schwartz
>-Original Message- >From: freedc@gmail.com [mailto:freedc@gmail.com] On Behalf Of >Phil >Sent: Tuesday, January 06, 2009 3:41 PM >To: Jerry Schwartz >Cc: mysql@lists.mysql.com >Subject: Re: Limit within groups > >How about something like > >

Re: Limit within groups

2009-01-06 Thread Phil
for each account. > > > > If I simply do "GROUP BY account, customer LIMIT 20", I'll get the first 20 > customers for the first account. If I try "GROUP BY account, customer ORDER > BY SUM(sale_amount) DESC LIMIT 20", I'll get the top 20 customers.

Limit within groups

2009-01-06 Thread Jerry Schwartz
"GROUP BY account, customer LIMIT 20", I'll get the first 20 customers for the first account. If I try "GROUP BY account, customer ORDER BY SUM(sale_amount) DESC LIMIT 20", I'll get the top 20 customers. What am I missing? Regards, Jerry Schwartz The Infoshop

Re: Why open-files-limit smaller than table_cache?

2008-06-08 Thread Eric Bergen
lowed range of values for the > open-files-limit and the table_cache settings. The documentation > states that the range of values allowed for open-files-limit is > 0-65535 and for table_cache it is 1-524288. > > Where I get confused is that from my understanding each table in the >

Re: Odd Results on Mysql LIMIT and ORDER BY

2008-04-26 Thread Brent Baisley
tructuring your query like this: select * from ( select * from containers where upload_date < 1209208414 and category_id = 120 order by upload_date desc ) as filter limit 175,25 Technically, it's the same query and should return the same results. It will be a little more intensiv

Odd Results on Mysql LIMIT and ORDER BY

2008-04-26 Thread j's mysql general
01 sec) And I have queries like these: select * from containers where upload_date < 1209208414 and category_id = 120 order by upload_date desc limit 0,25 and select * from containers where upload_date < 1209208414 and category_id = 120 order by upload_date desc limit 175,25 These queri

Re: MYSQL Limit

2008-02-19 Thread Andy Wallace
Looks like you're missing a comma after "comm_id", before the @num := line? andy Santosh Killedar wrote: I am trying the following code on 4.1.2 and getting a syntax error that I could not figure out. It works fine on 5.x. Any suggestion/alternate CREATE TEMPORARY TABLE Temp (Node INT, comm_i

RE: MYSQL Limit

2008-02-18 Thread Santosh Killedar
I am trying the following code on 4.1.2 and getting a syntax error that I could not figure out. It works fine on 5.x. Any suggestion/alternate CREATE TEMPORARY TABLE Temp (Node INT, comm_id INT, INDEX USING BTREE (comm_id)) ENGINE = MyISAM; INSERT INTO Temp SELECT recipient, id FROM `main_gue

RE: MYSQL Limit

2008-02-16 Thread Santosh Killedar
deID, @last + 1, 1)) is > not null >and (@NodeID := NodeID) is not null >and (@last > @keeplast) > ; > > > -Original Message- > From: joe [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 16, 2008 8:12 PM > To: 'Santosh Killedar' >

MYSQL Limit

2008-02-16 Thread Santosh Killedar
I have a MYsql table with following columns Node ID, Comment ID, Text, Date. Coment ID is primary key. For each Node ID there are one or more comment IDs (comments). There is a threshold (max_comments) that a node can have. How can I delete oldest comments associated with those nodes where this thr

Re: workaround? : Limit in subquery not allowed

2008-02-06 Thread Perrin Harkins
On Feb 6, 2008 6:40 AM, Britske <[EMAIL PROTECTED]> wrote: > SELECT * FROM prices WHERE prices.productid IN (SELECT id FROM priducts > ORDER BY id LIMIT 0, 1000) > > However, I'm getting an error-message stating that Limit is not allowed in a > subquery. > How wou

Re: workaround? : Limit in subquery not allowed

2008-02-06 Thread Baron Schwartz
e correctly I need to be sure that > all prices of a certain product are contained in the same chunk. > > To me it seemd logical to do something like this: > > SELECT * FROM prices WHERE prices.productid IN (SELECT id FROM priducts > ORDER BY id LIMIT 0, 1000) > > However, I

workaround? : Limit in subquery not allowed

2008-02-06 Thread Britske
To me it seemd logical to do something like this: SELECT * FROM prices WHERE prices.productid IN (SELECT id FROM priducts ORDER BY id LIMIT 0, 1000) However, I'm getting an error-message stating that Limit is not allowed in a subquery. How would you approach this? Thanks, Geert-Jan --

Re: limit and count to get summaries

2008-01-29 Thread Baron Schwartz
explorer error 89 > Comp4print job 65 > > Each computer might have a hundred different types of errors and a > thousand entries in the table. > > I thought the sql would be something like: > > Select computername, event, count(event) and numb_tim

limit and count to get summaries

2008-01-29 Thread Ramsey, Robert L
table. I thought the sql would be something like: Select computername, event, count(event) and numb_times, from eventtbl group by computername, event order by computername, numb_times limit 3; But that wasn't the answer. Can I do this is one sql statement? Or am I going to have to make temp

RE: group_concat display limit

2008-01-08 Thread Rolando Edwards
The variable 'group_concat_max_len' has a default of 1024 (1K) Add this to you're my.cnf to make it 8K [mysqld] group_concat_max_len=8192 -- Another way without altering 'group_concat_max_len' is To manually concatenate the string pieces with blanks in

Re: group_concat display limit

2008-01-07 Thread Moon's Father
learnt. On Jan 8, 2008 2:11 PM, Werner Puschitz <[EMAIL PROTECTED]> wrote: > Andrey Dmitriev wrote: > > All, > > > > We are using group_concat but there seems to be some sort of display > > limit. > > Is there are a way to unset or increase it? > >

Re: group_concat display limit

2008-01-07 Thread Werner Puschitz
Andrey Dmitriev wrote: > All, > > We are using group_concat but there seems to be some sort of display > limit. > Is there are a way to unset or increase it? > > Thanks, > Andrey > You can change the maximum length by setting the group_concat_max_len system varia

Re: group_concat display limit

2008-01-07 Thread Moon's Father
You should change your sql to related sub query. On Jan 8, 2008 1:34 PM, Andrey Dmitriev <[EMAIL PROTECTED]> wrote: > All, > > We are using group_concat but there seems to be some sort of display > limit. > Is there are a way to unset or increase it? > > Thanks, >

group_concat display limit

2008-01-07 Thread Andrey Dmitriev
All, We are using group_concat but there seems to be some sort of display limit. Is there are a way to unset or increase it? Thanks, Andrey

Re: Limit the results of a COUNT

2007-12-31 Thread Perrin Harkins
off avoiding this complication. At the very least, I'd avoid joining things that can't be joined. > Your suggestion does help somewhat. Changing the subqueries to a count of > limited subqueries reduced a large sample query from 9 seconds down to 5 > seconds. We need to get

Re: Limit the results of a COUNT

2007-12-31 Thread donr2020
t; like these should be separate queries. > >> This query is being run against a database that currently as 100 Million >> records (and rapidly growing), and if TotCount is over about 50,000, the >> query is unacceptably slow. We need to LIMIT the subqueries to some >> ma

Re: Limit the results of a COUNT

2007-12-31 Thread Perrin Harkins
As an example: Hmm. Why are you joining these? There's nothing to join. It looks like these should be separate queries. > This query is being run against a database that currently as 100 Million > records (and rapidly growing), and if TotCount is over about 50,000, the > query is

Limit the results of a COUNT

2007-12-30 Thread donr2020
M ( SELECT Col1 FROM Table WHERE Col1 = X and Col2 > Y and Col3 < Z LIMIT 1, 30 ) Main INNER JOIN ( SELECT COUNT(*) AS TotCount FROM Table ) NoFilter INNER JOIN ( SELECT COUNT(*) AS SubCount WHERE Col2 > Y ) Filter1 ETC. This query is being run against a database that currently as 100 M

Re: Applying LIMIT to SELECT count(*)

2007-12-21 Thread js
> View this message in context: > http://www.nabble.com/Applying-LIMIT-to-SELECT-count%28*%29-tp14453544p14459808.html > > Sent from the MySQL - General mailing list archive at Nabble.com. > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com

Re: Applying LIMIT to SELECT count(*)

2007-12-21 Thread Urms
The problem is that there are certain conditions after WHERE different for each query and the results number can be very different. -- View this message in context: http://www.nabble.com/Applying-LIMIT-to-SELECT-count%28*%29-tp14453544p14459808.html Sent from the MySQL - General mailing list

Re: Applying LIMIT to SELECT count(*)

2007-12-21 Thread js
If exact number isn't important, you might want to try table_rows in information_schema.tables or show table status. On Dec 21, 2007 7:53 PM, Urms <[EMAIL PROTECTED]> wrote: > > Hi, > > My task is to limit calculation of total number of items in the database > that sat

Applying LIMIT to SELECT count(*)

2007-12-21 Thread Urms
Hi, My task is to limit calculation of total number of items in the database that satisfy certain conditions. I join two tables using WHERE and there are millions of records as the result. When I do SELECT count(*) it takes really too long. The table has appropriate indexes and I

Re: Limit SET command to 2 decimal places

2007-12-14 Thread Baron Schwartz
Hi, On Dec 14, 2007 1:02 PM, J Trahair <[EMAIL PROTECTED]> wrote: > Hi Everyone > > I have a database with an OrderItems table, containing (at least) 3 fields, > namely ExtendedPurchasePrice, CurrencyConversion and > ExtendedPurchasePriceSterling, all fields as doubles. > > I want to update Exte

Limit SET command to 2 decimal places

2007-12-14 Thread J Trahair
Hi Everyone I have a database with an OrderItems table, containing (at least) 3 fields, namely ExtendedPurchasePrice, CurrencyConversion and ExtendedPurchasePriceSterling, all fields as doubles. I want to update ExtendedPurchasePriceSterling for each row with the result of the calculation Ext

Re: MySQL Browser - limit 1000 by default?

2007-12-02 Thread barry
-afan > > > > barry wrote: > > I'm assuming you're talking about the Mysql Query Browser? > > > > You can change the number of records under Tools-> Preferences and > > changing the "Max Rows For Generated Queries" to whatever you wan

Re: MySQL Browser - limit 1000 by default?

2007-12-02 Thread Afan Pasalic
ords under Tools-> Preferences and changing the "Max Rows For Generated Queries" to whatever you want, set to zero removes the limit entirely. On Sat, 2007-12-01 at 15:17 -0600, Afan Pasalic wrote: Hi, on Linux version of MySQL Browser (v 1.2.4 beta), when double-click on any table, default q

Re: MySQL Browser - limit 1000 by default?

2007-12-02 Thread barry
I'm assuming you're talking about the Mysql Query Browser? You can change the number of records under Tools-> Preferences and changing the "Max Rows For Generated Queries" to whatever you want, set to zero removes the limit entirely. On Sat, 2007-12-01 at 15:17 -0600, A

MySQL Browser - limit 1000 by default?

2007-12-01 Thread Afan Pasalic
Hi, on Linux version of MySQL Browser (v 1.2.4 beta), when double-click on any table, default query is SELECT * FROM LIMIT 0,1000 On Win version (v 1.2.9 rc), there is no LIMIT part - what caused me to pull so many times tens, even hundreds thousands of records. I was looking for in setting

Re: LIMIT within GROUP BY

2007-10-05 Thread Miroslav Monkevic
Y person_id ORDER BY ranking DESC My goal is to sum 7 greatest results for each person. In more general, my question is: is there a way to limit number of records within groups in "group by" query. Try this: http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstlea

Re: LIMIT within GROUP BY

2007-10-05 Thread Baron Schwartz
nking DESC My goal is to sum 7 greatest results for each person. In more general, my question is: is there a way to limit number of records within groups in "group by" query. Try this: http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/

Re: LIMIT within GROUP BY

2007-10-05 Thread Miroslav Monkevic
is there a way to limit number of records within groups in "group by" query. Try this: http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/ Cheers Baron -- Best regards, Miroslav Monkevic -- MySQL General Mailing List Fo

Re: LIMIT within GROUP BY

2007-10-04 Thread Peter Brawley
results GROUP BY person_id ORDER BY ranking DESC My goal is to sum 7 greatest results for each person. In more general, my question is: is there a way to limit number of records within groups in "group by" query. Thank you!

Re: connections limit

2007-10-04 Thread Niu Kun
It is set in mysql's config file. Have you traced into your program? Albert Sanchez: > Is there a limit of connections (open and close) that mysql can carry? or a > limit by second? > > I have a big memory crash (double free or corruption) in my program and I > smell th

connections limit

2007-10-04 Thread Albert Sanchez
Is there a limit of connections (open and close) that mysql can carry? or a limit by second? I have a big memory crash (double free or corruption) in my program and I smell that it could be mysql, thanks a lot, Albert

Re: LIMIT within GROUP BY

2007-10-04 Thread Baron Schwartz
Hi, Miroslav Monkevic wrote: Hello, MySQL 4.1 I have query: SELECT SUM(points) as ranking FROM results GROUP BY person_id ORDER BY ranking DESC My goal is to sum 7 greatest results for each person. In more general, my question is: is there a way to limit number of records within groups

LIMIT within GROUP BY

2007-10-04 Thread Miroslav Monkevic
Hello, MySQL 4.1 I have query: SELECT SUM(points) as ranking FROM results GROUP BY person_id ORDER BY ranking DESC My goal is to sum 7 greatest results for each person. In more general, my question is: is there a way to limit number of records within groups in "group by" quer

Re: How to limit word result by query

2007-08-22 Thread mos
At 12:40 AM 8/22/2007, [EMAIL PROTECTED] wrote: Hi all, Is it possible to do query which limiting the result into some words only? i.e the complete sentence is "I am able to login with the account" and I just want to view "I am able to login..." Many thanks for any reply. Regards, Willy Will

How to limit word result by query

2007-08-21 Thread [EMAIL PROTECTED]
Hi all, Is it possible to do query which limiting the result into some words only? i.e the complete sentence is "I am able to login with the account" and I just want to view "I am able to login..." Many thanks for any reply. Regards, Willy -- www.sangprabv.web.id www.binbit.co.id -- MySQL Ge

Re: query_cache and LIMIT

2007-07-12 Thread mos
At 04:26 PM 7/12/2007, Mukul Sabharwal wrote: Hello, Is the query_cache a cache for *exact* queries -- exactness here refers to as determined by the query plan. Or is it word for word? It is word for word, and is case sensitive. Query in question, SELECT * FROM tbl WHERE ... LIMIT 100; as

  1   2   3   4   5   6   7   8   9   10   >