Re: [sqlalchemy] Very slow inserts when using sqlalchemy core

2018-10-04 Thread adam . botbyl
Mike, Er, yeah, not TSQL, my old MSSQL days are showing :D meant a str() of sql I'm saying bindparms as the required input format of the params used to re-bind into the sql in the optimal way, for example execute(__table__.insert(), bindparams) would represent a list of dicts. I did a packet

Re: [sqlalchemy] Very slow inserts when using sqlalchemy core

2018-10-04 Thread Mike Bayer
On Thu, Oct 4, 2018 at 4:04 PM wrote: > > Mike, > > No, I'm not calling execute 10k times, but I am doing what they do in your > example with test_core_insert > > My code for that is: > log.info('Executing sqlalchemy insert() with bindparams as > execute param -

Re: [sqlalchemy] Very slow inserts when using sqlalchemy core

2018-10-04 Thread adam . botbyl
Mike, No, I'm not calling execute 10k times, but I am doing what they do in your example with test_core_insert My code for that is: log.info('Executing sqlalchemy insert() with bindparams as execute param - session.execute(__table__.insert(), bindparams)')

Re: [sqlalchemy] Very slow inserts when using sqlalchemy core

2018-10-04 Thread Mike Bayer
On Thu, Oct 4, 2018 at 2:45 PM wrote: > > Hi all, > > Having some very and major performance issues using sqlalchemy to insert > data, been trying many different ways but none seem to hold even a close > candle to raw MySQLdb connections > > Versions: > sqlalchemy: 1.2.9 > MySQLdb: 1.3.13

[sqlalchemy] Very slow inserts when using sqlalchemy core

2018-10-04 Thread adam . botbyl
Hi all, Having some very and major performance issues using sqlalchemy to insert data, been trying many different ways but none seem to hold even a close candle to raw MySQLdb connections Versions: sqlalchemy: 1.2.9 MySQLdb: 1.3.13 (bound with mysql+mysqldb connector) MySQL: 14.14 Python:

Re: [sqlalchemy] Issue on inserts statements for pg explain recipe

2018-10-04 Thread Mike Bayer
On Thu, Oct 4, 2018 at 5:10 AM wrote: > > That's great ! Thanks a lot ! > > Btw it seems that the > > self.inline = getattr(stmt, 'inline', None) > > is no longer necessary, I tryed my insert exemple with it commented and it > still runned fine. well there's also an "inline" argument for

Re: [sqlalchemy] Re: Hybrid Property vs Hybrid Method Expression Names

2018-10-04 Thread Mike Bayer
a PR would at least remind me to look into it even if i dont use your suggested verbiage as is, thanks! On Thu, Oct 4, 2018 at 4:07 AM wrote: > > To follow this up - what would be the best way to get these extra dragons in? > I would be happy to submit a PR or something if that is easier. > > On

Re: [sqlalchemy] Issue on inserts statements for pg explain recipe

2018-10-04 Thread nicolas . rolin
That's great ! Thanks a lot ! Btw it seems that the self.inline = getattr(stmt, 'inline', None) is no longer necessary, I tryed my insert exemple with it commented and it still runned fine. Le jeudi 4 octobre 2018 05:23:02 UTC+2, Mike Bayer a écrit : > > The insert is by itself not a

Re: [sqlalchemy] Re: Hybrid Property vs Hybrid Method Expression Names

2018-10-04 Thread james
To follow this up - what would be the best way to get these extra dragons in? I would be happy to submit a PR or something if that is easier. On Friday, September 14, 2018 at 10:32:52 AM UTC+2, ja...@cryptosense.com wrote: > > Thanks for the help - I had missed the "copy vs modifying in place"