Hi, This particular operation in my Gui greatly improves the overal speed and user expérience. [self getGlorpSession commitUnitOfWork] fork. There are other areas where my UI could benefit from the above, but before generelising it use I wanted to check what the theoretical risk are. PostgreSQL and SQLite are not multi-threaded like Oracle so there must be riss in doing this. Regards, -- You received this message because you are subscribed to the Google Groups "glorp-group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/glorp-group. For more options, visit https://groups.google.com/d/optout. |
Hi Tom,
I use one connection. Regards, Maarten,
You received this message because you are subscribed to the Google Groups "glorp-group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/glorp-group. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Maarten Mostert
SQLite is thread-safe if you use the default "serialized" mode, or compile it to be "multithred". Dealing with I/O operations outside of the UI thread is always a good practice (in some cases like Android, it is enforced by UI scheduler). I would add a few exception handling and callbacks, so you know how the commit ended, you can signal something or disable the UI from committing a new UOW in the same session. Altough I think the last case is handled by Glorp itself. Regards! Esteban A. Maringolo 2016-03-30 17:21 GMT-03:00 Maarten Mostert <[hidden email]>:
You received this message because you are subscribed to the Google Groups "glorp-group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/glorp-group. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |