Yes is you do it within the shell you better commit every 100 records depending of the size of the record, but since it just a single column and integer you can commit even every 500-1000 records I guess without issue...
To do so you can use this snippet : for i, r in enumerate(db.select()): db.table.insert(something) if i % 100 == 0: db.commit() On Tue, Oct 25, 2016 at 2:20 PM, Dave S <snidely....@gmail.com> wrote: > > > On Tuesday, October 25, 2016 at 8:08:28 AM UTC-7, Ian W. Scott wrote: >> >> Okay, that's what I was afraid of. Thanks. >> >> Ian >> >> On Tuesday, October 25, 2016 at 10:06:19 AM UTC-4, Richard wrote: >>> >>> You can't just change the field type, you have to create another column >>> of string type then insert your data from a select of the other column into >>> it then delete the old useless column... You need to transform the integer >>> into text at the insert step... >>> >>> Richard >>> >> > I would try using a csv export/import. If it's a large table, I can see > some pain, but it should be simple in python, awk, or even sed to toss in > quotes in the right column. > > /dps > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.