Re: [Cloud] SQL Question

2019-08-14 Thread Huji Lee
Amazing! It did not occur to me that I should try it outside of Quarry (I just love and trust Quarry so much ... ;) Thank you all for your help. I am going to move this to Phabricator as a task for Quarry. On Wed, Aug 14, 2019 at 9:30 AM Brad Jorsch (Anomie) wrote: > On Wed, Aug 14, 2019 at 9:1

Re: [Cloud] SQL Question

2019-08-14 Thread Brad Jorsch (Anomie)
On Wed, Aug 14, 2019 at 9:10 AM John wrote: > I tweaked the initial select statement from *,* to just * > > MariaDB [fawiki_p]> set @row_number = 0; set @row_number_2 = 0; select * > from ( select (@row_number:=@row_number + 1) as rownumber, ipb_address from > ipblocks where ipb_by_actor = 1789 o

Re: [Cloud] SQL Question

2019-08-14 Thread John
I tweaked the initial select statement from *,* to just * MariaDB [fawiki_p]> set @row_number = 0; set @row_number_2 = 0; select * from ( select (@row_number:=@row_number + 1) as rownumber, ipb_address from ipblocks where ipb_by_actor = 1789 order by ipb_range_start ) as ipb left join ( select (@r

Re: [Cloud] SQL Question

2019-08-13 Thread Huji Lee
Let's way the output of Query 1, without the rownumber column, would be like this: 1.2.3.4 100.200.100.200 4.6.8.10 100.200.100.202 4.6.9.255 Using the ORDER BY and the @rownumber variable, we get an output that is like this: 11.2.3.4 24.6.8.10 34.6.9.255 4100.200.100.200 510

Re: [Cloud] SQL Question

2019-08-13 Thread John
what does your rownumber logic actually do? odds are that's probably whats slowing you down On Tue, Aug 13, 2019 at 7:46 PM Huji Lee wrote: > Certainly doable! But I didn't ask this here because of not having a way > to achieve my goal; I asked it because I am perplexed as to why the query > nev

Re: [Cloud] SQL Question

2019-08-13 Thread Huji Lee
Certainly doable! But I didn't ask this here because of not having a way to achieve my goal; I asked it because I am perplexed as to why the query never finishes, despite its relatively simple structure and row number of rows returned. On Tue, Aug 13, 2019 at 7:43 PM Platonides wrote: > Why not

Re: [Cloud] SQL Question

2019-08-13 Thread Platonides
Why not simply do the comparison client-side? ___ Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly lab...@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud

Re: [Cloud] SQL Question

2019-08-10 Thread Huji Lee
Amazingly, the problematic query never finishes executing. Still trying to figure out what is going on here. Any help is appreciated. On Wed, Aug 7, 2019 at 10:21 PM Maximilian Doerr wrote: > Running an EXPLAIN on all three reveal identical indices being used. They > should theoretically all ru

Re: [Cloud] SQL Question

2019-08-07 Thread Maximilian Doerr
Running an EXPLAIN on all three reveal identical indices being used. They should theoretically all run equally fast. Cyberpower678 English Wikipedia Account Creation Team English Wikipedia Administrator Global User Renamer > On Aug 7, 2019, at 22:15, Huji Lee wrote: > > I have a question for