The latter one works only with postgres:
https://groups.google.com/forum/#!topic/web2py/1_DHUrrg6O8

What's the error message?

On Sat, Jan 3, 2015 at 5:30 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

>
>
> On Friday, 2 January 2015 16:03:16 UTC-6, mweissen wrote:
>>
>> I have tried to convert an application from SQLite to Postgresql and I
>> have found two differences:
>>
>> (1):
>> q = some query like db.table.field<3
>> b = some boolean like a<3
>> db(q & b)
>>
>> SQLite needs to convert b to '0' or '1', Postgresql to 'FALSE' or 'TRUE'
>>
>
> yes but web2py does it for you. you should not need to change your code.
>
>
>>
>> (2): orderby generates some difficult error messages. I have found the
>> following solution
>> SQLite
>> db(db.table.field==x).select(orderby=db.table.field2,
>> groupby=db.table.field2)
>>
>> Postgresql:
>> db(db.table.field==x).select(orderby=db.table.field2,
>> distinct=db.table.field2)
>>
>
> Are you sure? I think they both work on both databases. The problems arise
> when you groupby some fields and records are not sorted by those fields.
> Some engines allow it and some don't.
>
>
>> Does somebody has similar experiences?
>>
>> Regards, Martin
>>
>>
>> 2015-01-02 16:29 GMT+01:00 Michele Comitini <michele.comit...@gmail.com>:
>>
>>> SQLite is by design an excellent embedded database,  better suited for
>>> single user implementation and targeted at small datasets.
>>> For larger datasets there is no reason not to use PostgreSQL, it's free,
>>> well supported by web2py,
>>> handles very large datasets and it's easy to setup.
>>>
>>> Migration from SQLite to any other db supported by web2py is very easy
>>> and explained on the web2py book
>>>
>>> 2015-01-02 6:49 GMT+01:00 Eric Taw <tawe...@gmail.com>:
>>>
>>>> From reading a lot of web2py tutorials and guides, they always say
>>>> SQLite is good for small implementations of databases, whereas other SQL
>>>> flavors are better suited for larger uses. Is there any reason why? Can I
>>>> still use SQLite if I have a lot of information to store?
>>>>
>>>> --
>>>> 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.
>>>
>>
>>
>>   --
> 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.

Reply via email to