[web2py] Re: MongoDB and Web2py in Windows
I tried binary version. It did not work. Im trying to subscribe to CouchDB or MongoDB online and test it instead running my db local machine. thanks for the help. On Friday, November 28, 2014 6:51:15 PM UTC-5, Massimo Di Pierro wrote: Are you using the source version of the binary version of web2py? The binary version comes his own python version. On Wednesday, 26 November 2014 09:42:56 UTC-6, Oliver wrote: Hi All, anyone have success using MongoDb in DAL? When I ran web2py, I don't see MongoDB listed. here is what I got when I ran web2py command web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(psycopg2 ), PostgreSQL(pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), Ingres(pyod bc), IMAP(imaplib) I installed Pymongo. I downloaded and installed MongoDB in my Windows 7 and 8 computer to test. Same result. Thanks -- 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.
[web2py] Re: MongoDB and Web2py in Windows
Exactely. The binary version is not supposed to work. It comes with its own version of python therefore it does not see any module that you may have installed. If you want to use modules like pymongo you must install Python, install pymongo, AND run web2py source so it uses your own python version and libraries. On Wednesday, 10 December 2014 10:32:15 UTC-6, Oliver wrote: I tried binary version. It did not work. Im trying to subscribe to CouchDB or MongoDB online and test it instead running my db local machine. thanks for the help. On Friday, November 28, 2014 6:51:15 PM UTC-5, Massimo Di Pierro wrote: Are you using the source version of the binary version of web2py? The binary version comes his own python version. On Wednesday, 26 November 2014 09:42:56 UTC-6, Oliver wrote: Hi All, anyone have success using MongoDb in DAL? When I ran web2py, I don't see MongoDB listed. here is what I got when I ran web2py command web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(psycopg2 ), PostgreSQL(pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), Ingres(pyod bc), IMAP(imaplib) I installed Pymongo. I downloaded and installed MongoDB in my Windows 7 and 8 computer to test. Same result. Thanks -- 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.
[web2py] Re: MongoDB and Web2py in Windows
Are you using the source version of the binary version of web2py? The binary version comes his own python version. On Wednesday, 26 November 2014 09:42:56 UTC-6, Oliver wrote: Hi All, anyone have success using MongoDb in DAL? When I ran web2py, I don't see MongoDB listed. here is what I got when I ran web2py command web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(psycopg2 ), PostgreSQL(pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), Ingres(pyod bc), IMAP(imaplib) I installed Pymongo. I downloaded and installed MongoDB in my Windows 7 and 8 computer to test. Same result. Thanks -- 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.
[web2py] Re: mongodb and web2py
mongodb gets a lot of attention, has a fairly large userbase and even dedicated database hosting for scalability. They do a lot of marketing to expand their userbase from Rails to Django to PHP users are using it! I think it is fair that they want to work on the mongodb adapter. It will help expand web2py's userbase too! It's good you brought to attention orientdb. Are you using it with web2py? On Dec 3, 10:58 pm, Vasile Ermicioi elff...@gmail.com wrote: my advice is to pay attention to another document and graph database: orientdbhttp://code.google.com/p/orient/ like mongodb it is a document database, which means it can store json like objects and because it supports some sort of sql it should be much easier to write an adapter
[web2py] Re: MongoDB and Web2py
we use the DAL for MySQL and pymongo for MongoDB We are changing everything to MongoDS, so we have some interest in being able to write MongoDB queries trough the DAL so we woulnd't have to change lots of code On Oct 3, 9:57 am, ~redShadow~ redsha...@hackzine.org wrote: On Sun, 2011-10-02 at 14:52 -0700, Francisco Costa wrote: I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py community http://web2py.uservoice.com/forums/42577-generalare there any plans or schedule for this support? I am using pymongo directly in some experiments, but I'd prefer it to be integrated directly in the DAL. I was trying to extend the actual adapter by monkeypatching that, but I found quite hard to write that due to the lack of documentation on what adapters should do exactly (am I wrong? There's some doc that I wasn't able to find?). Anyways, I'd need MongoDBAdapter working for a project, so I'm willingly to cooperate in writing and testing that, I'm just a bit stuck trying to understand how adapters should work, by reading the source code of other adapters.. -- Samuele ~redShadow~ Santi redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog:http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008 D1FC 166C 3C7E EB26 4933 /me recommends: Squadra Informatica -http://www.squadrainformatica.com - Proud ThinkPad T-Series owner - Registered Linux-User: #440008 * GENTOO User since 1199142000 (2008-01-01) * former DEBIAN SID user Software is like sex: it's better when it's free! -- Linus Torvalds signature.asc 1KViewDownload
[web2py] Re: MongoDB and Web2py
Hi Francisco, how do you manage the connection to MongoDB server? Do you establish and close connection on every request or do you use some connection pooling ?
[web2py] Re: MongoDB and Web2py
On Oct 12, 11:00 am, David Marko dma...@tiscali.cz wrote: Hi Francisco, how do you manage the connection to MongoDB server? Do you establish and close connection on every request or do you use some connection pooling ? Hi Marko, for now we are using pymongo like this: from pymongo import Connection server = 'localhost' port = 27017 conn = Connection(server, port) mongo = conn['db_name'] Then we something like mongo.collection.find() to queries so the connection is always open.
[web2py] Re: MongoDB and Web2py
Assume this code is in some db.py file ... so its executed on every request ...?
[web2py] Re: MongoDB and Web2py
we use it in db.py, not sure where should be the optimal way for it On Oct 12, 11:52 am, David Marko dma...@tiscali.cz wrote: Assume this code is in some db.py file ... so its executed on every request ...?
[web2py] Re: MongoDB and Web2py
Massimo adviced me to use something like this previsously: def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) It seemed to work but I had no opportunity to test it under some load. This is some kind of connection pooling/share David
[web2py] Re: MongoDB and Web2py
On Oct 12, 12:07 pm, David Marko dma...@tiscali.cz wrote: Massimo adviced me to use something like this previsously: def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) Where do you put the make_connection function? And what about the connection variable?
[web2py] Re: MongoDB and Web2py
Both can be in db.py file and so available for entire application = to other db_xx.py files and controlers ... the same thing as standard 'db' sql connection variable defined in db.py by default.
[web2py] Re: MongoDB and Web2py
Here is what I use (in a file models/0.py): import pymongo from pymongo import ASCENDING, DESCENDING def make_mongo_connection(): mdb = pymongo.Connection() return mdb mdb = cache.ram('mongodb', make_mongo_connection, 0) # in the code I use mdb as needed. # On a busy site, it may make sense to have several of these connections available to use in a pool
[web2py] Re: MongoDB and Web2py
Shouldnt the cache.ram('mongodb', make_mongo_connection, 0) has the None instead of 0? Having 0 it doesnt work as a cache as it refreshes connection on each request ...
Re: [web2py] Re: MongoDB and Web2py
On Wed, 2011-10-12 at 04:07 -0700, David Marko wrote: Massimo adviced me to use something like this previsously: def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) It seemed to work but I had no opportunity to test it under some load. This is some kind of connection pooling/share What about using the standard DAL with MongoDBAdapter to manage the connection pool and then use the pymongo.Connection() in db._adapter.connection to directly operate on the database? I haven't tested yet (for now I'm just doing experiments, so I don't need connection pool), but looks like this should work.. -- Samuele ~redShadow~ Santi redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008 D1FC 166C 3C7E EB26 4933 /me recommends: Squadra Informatica - http://www.squadrainformatica.com - Proud ThinkPad T-Series owner - Registered Linux-User: #440008 * GENTOO User since 1199142000 (2008-01-01) * former DEBIAN SID user Software is like sex: it's better when it's free! -- Linus Torvalds signature.asc Description: This is a digitally signed message part
[web2py] Re: MongoDB and Web2py
At this time my priority is to finish document the rest of undocumented web2py features. I will work on this as soon as I finish that. Anyway, in dal.py there is a mongodb adapter. It can only do insert. Has anybody tried that? massimo On Oct 2, 4:52 pm, Francisco Costa m...@franciscocosta.com wrote: I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py communityhttp://web2py.uservoice.com/forums/42577-generalare there any plans or schedule for this support?
Re: [web2py] Re: MongoDB and Web2py
I used that for some samples and talks, also for a small project. as I I am not doing advanced operations I cant say if it works or not. But for my sample needs worked very well. On Sun, Oct 2, 2011 at 7:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: At this time my priority is to finish document the rest of undocumented web2py features. I will work on this as soon as I finish that. Anyway, in dal.py there is a mongodb adapter. It can only do insert. Has anybody tried that? massimo On Oct 2, 4:52 pm, Francisco Costa m...@franciscocosta.com wrote: I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py communityhttp:// web2py.uservoice.com/forums/42577-generalare there any plans or schedule for this support? -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]
[web2py] Re: MongoDB and Web2py
I am confused. Did you use db = DAL('mongodb://') db.define_table() db.mytable.insert() or just the mongodb api? On Oct 2, 5:53 pm, Bruno Rocha rochacbr...@gmail.com wrote: I used that for some samples and talks, also for a small project. as I I am not doing advanced operations I cant say if it works or not. But for my sample needs worked very well. On Sun, Oct 2, 2011 at 7:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: At this time my priority is to finish document the rest of undocumented web2py features. I will work on this as soon as I finish that. Anyway, in dal.py there is a mongodb adapter. It can only do insert. Has anybody tried that? massimo On Oct 2, 4:52 pm, Francisco Costa m...@franciscocosta.com wrote: I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py communityhttp:// web2py.uservoice.com/forums/42577-generalare there any plans or schedule for this support? -- -- Bruno Rocha [ About me:http://zerp.ly/rochacbruno] [ Aprenda a programar:http://CursoDePython.com.br] [ O seu aliado nos cuidados com os animais:http://AnimalSystem.com.br] [ Consultoria em desenvolvimento web:http://www.blouweb.com]
[web2py] Re: MongoDb and web2py
My understanding is that pymongo has connection pooling builtin. - http://api.mongodb.org/python/current/api/pymongo/connection.html Also, it appears that an addition to the cache method described by Massimo enables the use replica sets as well. You still need to handle AutoReconnect exceptions when the master is lost. - http://api.mongodb.org/python/current/api/pymongo/errors.html#pymongo.errors.AutoReconnect def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017, replicaset=setName) return connection connection = cache.ram('mongodb',make_connection,None) Regards, Daniel On Aug 14, 11:25 am, Karthik karthikparameswa...@gmail.com wrote: I'm still looking for a solution to simulate connection pooling, any responses would be great - thanks! On Jul 21, 4:53 pm, Karthik karthikparameswa...@gmail.com wrote: Hi Massimo, Thanks for this. Do you know if it will hold up in a high performance situation though? As in, if multiple connections originate at the same time, won't there be a queue? Is it possible to simulate the connection pooling mechanism in web2py's DAL? Thanks,Karthik On Jul 31 2010, 4:13 am, mdipierro mdipie...@cs.depaul.edu wrote: how about this? (None below means cache forever) def make_connection(): frompymongoimport Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) On Jul 31, 3:11 am, David Marko dma...@tiscali.cz wrote: Hi Massimo, can you give ua a hint how to impelement persistent connection in web2py forpyMongo?PyMongorequires database connection and to use it efficiently the connection has to be persistent and shared among requests like a connection pool for database connections as DAL has. But how to do it in web2py? e.g. frompymongoimport Connection connection = Connection('localhost', 27017) ### how to keep this connection object? David On 31 čnc, 09:57, mdipierro mdipie...@cs.depaul.edu wrote: yes. Just set dbio=False in forms and do your own mymongo IO after accepts: On Jul 30, 11:18 am, Amit Ambardekar amit...@gmail.com wrote: I want to use web2py withpymongo. I don't need ORM or or anything. I just want to connect usepymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. AmitMy understanding is that pymongo has connection pooling builtin. - http://api.mongodb.org/python/current/api/pymongo/connection.html
[web2py] Re: MongoDb and web2py
I'm still looking for a solution to simulate connection pooling, any responses would be great - thanks! On Jul 21, 4:53 pm, Karthik karthikparameswa...@gmail.com wrote: Hi Massimo, Thanks for this. Do you know if it will hold up in a high performance situation though? As in, if multiple connections originate at the same time, won't there be a queue? Is it possible to simulate the connection pooling mechanism in web2py's DAL? Thanks,Karthik On Jul 31 2010, 4:13 am, mdipierro mdipie...@cs.depaul.edu wrote: how about this? (None below means cache forever) def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) On Jul 31, 3:11 am, David Marko dma...@tiscali.cz wrote: Hi Massimo, can you give ua a hint how to impelement persistent connection in web2py for pyMongo? PyMongo requires database connection and to use it efficiently the connection has to be persistent and shared among requests like a connection pool for database connections as DAL has. But how to do it in web2py? e.g. from pymongo import Connection connection = Connection('localhost', 27017) ### how to keep this connection object? David On 31 čnc, 09:57, mdipierro mdipie...@cs.depaul.edu wrote: yes. Just set dbio=False in forms and do your own mymongo IO after accepts: On Jul 30, 11:18 am, Amit Ambardekar amit...@gmail.com wrote: I want to use web2py with pymongo. I don't need ORM or or anything. I just want to connect use pymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. Amit
[web2py] Re: MongoDb and web2py
Hi Massimo, Thanks for this. Do you know if it will hold up in a high performance situation though? As in, if multiple connections originate at the same time, won't there be a queue? Is it possible to simulate the connection pooling mechanism in web2py's DAL? Thanks, Karthik On Jul 31 2010, 4:13 am, mdipierro mdipie...@cs.depaul.edu wrote: how about this? (None below means cache forever) def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) On Jul 31, 3:11 am, David Marko dma...@tiscali.cz wrote: Hi Massimo, can you give ua a hint how to impelement persistent connection in web2py for pyMongo? PyMongo requires database connection and to use it efficiently the connection has to be persistent and shared among requests like a connection pool for database connections as DAL has. But how to do it in web2py? e.g. from pymongo import Connection connection = Connection('localhost', 27017) ### how to keep this connection object? David On 31 čnc, 09:57, mdipierro mdipie...@cs.depaul.edu wrote: yes. Just set dbio=False in forms and do your own mymongo IO after accepts: On Jul 30, 11:18 am, Amit Ambardekar amit...@gmail.com wrote: I want to use web2py with pymongo. I don't need ORM or or anything. I just want to connect use pymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. Amit
Re: [web2py] Re: MongoDB and Web2Py
I will test it for my new application: x2py = a web2py-powered web-based email client. Yet, another web-based email client!
[web2py] Re: MongoDB and Web2Py
DAL allows to do: db=DAL('mongodb://127.0.0.1:5984/db') it allows to define_table and allows db.table.insert(...) other methods have not been implemented because the above was never tested. If you help us with testing I can implement the other methods (select, count, update). On Apr 1, 9:55 am, David J. da...@styleflare.com wrote: While DAL might not support MongDB; you can still use it via mongoengine; On 4/1/11 10:41 AM, Marcel Luethi wrote: Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierromassimo.dipie...@gmail.com wrote: Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmackluckysm...@gmail.com wrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
Re: [web2py] Re: MongoDB and Web2Py
Thanks Massimo; I never thought to even try this; I will make a sample project and test this; (For me the other way works; so I wouldn't ask that you implement it in DAL; (but I am happy to test it;) Thanks for your great software. David. On 4/4/11 9:24 AM, Massimo Di Pierro wrote: DAL allows to do: db=DAL('mongodb://127.0.0.1:5984/db') it allows to define_table and allows db.table.insert(...) other methods have not been implemented because the above was never tested. If you help us with testing I can implement the other methods (select, count, update). On Apr 1, 9:55 am, David J.da...@styleflare.com wrote: While DAL might not support MongDB; you can still use it via mongoengine; On 4/1/11 10:41 AM, Marcel Luethi wrote: Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierromassimo.dipie...@gmail.com wrote: Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmackluckysm...@gmail.comwrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
[web2py] Re: MongoDB and Web2Py
If it is an option you may want to try with couchdb. That is very close to completed. Only date/datetime/time/boolean fields do not work. On Apr 4, 10:37 am, David J. da...@styleflare.com wrote: Thanks Massimo; I never thought to even try this; I will make a sample project and test this; (For me the other way works; so I wouldn't ask that you implement it in DAL; (but I am happy to test it;) Thanks for your great software. David. On 4/4/11 9:24 AM, Massimo Di Pierro wrote: DAL allows to do: db=DAL('mongodb://127.0.0.1:5984/db') it allows to define_table and allows db.table.insert(...) other methods have not been implemented because the above was never tested. If you help us with testing I can implement the other methods (select, count, update). On Apr 1, 9:55 am, David J.da...@styleflare.com wrote: While DAL might not support MongDB; you can still use it via mongoengine; On 4/1/11 10:41 AM, Marcel Luethi wrote: Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierromassimo.dipie...@gmail.com wrote: Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmackluckysm...@gmail.com wrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
Re: [web2py] Re: MongoDB and Web2Py
+1 On 1 April 2011 06:35, David Marko dma...@tiscali.cz wrote: I'm also interested in testing ... David Marko
[web2py] Re: MongoDB and Web2Py
I'd also like to help with web2py+mongodb.
[web2py] Re: MongoDB and Web2Py
Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmack luckysm...@gmail.com wrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
Re: [web2py] Re: MongoDB and Web2Py
While DAL might not support MongDB; you can still use it via mongoengine; On 4/1/11 10:41 AM, Marcel Luethi wrote: Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierromassimo.dipie...@gmail.com wrote: Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmackluckysm...@gmail.com wrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
[web2py] Re: MongoDB and Web2Py
Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmack luckysm...@gmail.com wrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
[web2py] Re: MongoDB and Web2Py
Alright. Well im still learning web2py, so in a couple weeks when i feel confident enough (im already familiar with mongo) ill drop another line here. I was just curious as to what was done so i knew if there was some where I could start. On Mar 31, 7:58 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmack luckysm...@gmail.com wrote: I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curious as to what the status of using mongoDB is with web2py and if anyone has a basic example on how I would use it. Thanks
[web2py] Re: MongoDB and Web2Py
I'm also interested in testing ... David Marko
[web2py] Re: MongoDb and web2py
yes. Just set dbio=False in forms and do your own mymongo IO after accepts: On Jul 30, 11:18 am, Amit Ambardekar amit...@gmail.com wrote: I want to use web2py with pymongo. I don't need ORM or or anything. I just want to connect use pymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. Amit
[web2py] Re: MongoDb and web2py
Hi Massimo, can you give ua a hint how to impelement persistent connection in web2py for pyMongo? PyMongo requires database connection and to use it efficiently the connection has to be persistent and shared among requests like a connection pool for database connections as DAL has. But how to do it in web2py? e.g. from pymongo import Connection connection = Connection('localhost', 27017) ### how to keep this connection object? David On 31 čnc, 09:57, mdipierro mdipie...@cs.depaul.edu wrote: yes. Just set dbio=False in forms and do your own mymongo IO after accepts: On Jul 30, 11:18 am, Amit Ambardekar amit...@gmail.com wrote: I want to use web2py with pymongo. I don't need ORM or or anything. I just want to connect use pymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. Amit
[web2py] Re: MongoDb and web2py
how about this? (None below means cache forever) def make_connection(): from pymongo import Connection connection = Connection('localhost', 27017) return connection connection = cache.ram('mongodb',make_connection,None) On Jul 31, 3:11 am, David Marko dma...@tiscali.cz wrote: Hi Massimo, can you give ua a hint how to impelement persistent connection in web2py for pyMongo? PyMongo requires database connection and to use it efficiently the connection has to be persistent and shared among requests like a connection pool for database connections as DAL has. But how to do it in web2py? e.g. from pymongo import Connection connection = Connection('localhost', 27017) ### how to keep this connection object? David On 31 čnc, 09:57, mdipierro mdipie...@cs.depaul.edu wrote: yes. Just set dbio=False in forms and do your own mymongo IO after accepts: On Jul 30, 11:18 am, Amit Ambardekar amit...@gmail.com wrote: I want to use web2py with pymongo. I don't need ORM or or anything. I just want to connect use pymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. Amit