I need to register users, then keep track of the connections that users 
make, and be able to tell the shortest path between two users based on the 
connections they make, and then also be able to tell if they don't connect 
in anyway at all. The DAL has convenience methods for auth stuff which the 
third-party graph db APIs don't provide and i'm not ready to be writing 
auth methods, that's just a long route that will delay my project (not that 
i have a deadline or anything, it's a personal project and it's just going 
to take too much time writing auth methods. it's almost senseless seeing as 
i'm working with web2py and web2py already has an abstraction layer with 
methods to deal with all that). Currently I'm basically replicating 
registered accounts in the sqlite db as nodes in the graph db, and then 
replicating memberships as relationships in the graph db. Doing this cos I 
need to authenticate users before they can access the app.

This I believe is redundant but then the graph db I believe will be more 
efficient considering the bigger picture.

On Friday, November 13, 2015 at 3:27:09 PM UTC, Anthony wrote:
>
> The DAL doesn't support any graph databases, so you'll have to use 
> third-party libraries to handle any interactions with the database. What 
> kind of "support" are you looking for? Are you saying you want to use the 
> DAL methods to handle queries, inserts, etc.? If so, the current set of 
> methods would probably be inadequate given the very different structure of 
> graph data. You would really need to use a somewhat different abstraction 
> than what is provided by the DAL, in which case, why not just use an 
> existing third-party library that already provides the appropriate 
> abstraction?
>
> Anthony
>
> On Friday, November 13, 2015 at 5:01:55 AM UTC-5, Samuel Sowah wrote:
>>
>> Hello all,
>>
>> I'm trying to build an app and the most suitable type of database to work 
>> with for what I want to build would be a graph database. I've done some 
>> reading around it and ones like neo4j, orientdb, titan, sparksee, seem to 
>> be quite popular in the python communities seeing as they have python APIs. 
>> I'm wondering however if web2py has support for any graph database at all? 
>> I started with a workaround where I connect to an sqlite database primarily 
>> using the DAL but then in my model, i also have an object that connects to 
>> a graph database, and I write to both databases separately. Isn't there a 
>> slice somewhere explaining web2py and graph databases or something like 
>> that?
>>
>> Any info at all on how those two (web2py and graph DBs) mix?
>>
>

-- 
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