Re: DJango and OrientDB

2012-12-17 Thread Amirouche B.
Héllo,

Sorry to shim in a probably a bit off and old topic discussion, I think we 
need to have this discussion, even if this is similar to any other nosql 
discussion, there is nothing really specific to OrientDB or any graphdb 
(Neo4J, Rexster server, ...).

I have no particular experience with OrientDB dev, as I'm more interested 
in Rexster server, but I hope I can be of some help.

There is another old topic in django-users so you might want to check it 
too:

- https://groups.google.com/d/topic/django-users/WHEmlrTVgWc/discussion

I am planning to use orientDb with Django application (i am yet in design 
> stage).
>

Join the fun :)
 

> I am not sure if i should just use simiple pyorient like library to access 
> orientDB or should i write new db driver etc
>

I don't think Django ORM can address the GraphDB issues just like it 
couldn't address mongodb things and that was the purpose of specific 
software Django-nonrel <https://github.com/django-nonrel/django-nonrel>(which 
looks unmaintened). Django-nonrel won't probably address it too, 
that said I never used django-nonrel, so I'm no best to give a definitive 
answer about the subject.
 

> Basically my question is should i worry about not using django db 
> functionality if i write custom classes to represent model classes.
>

The question is vague. Are you aiming at using both a relationnal database 
and a graphdb or just a graphdb ?

- Both: Since you can't use django orm with orientdb, you need to make the 
graphdb orm or deal in your code with the connection, querying to the 
graphdb
- GraphDB only: the above solve this case.

For other probable questions:

- Can I create a graphdb (Neo4j, OrientDB, Rexster) driver for Django ORM, 
yes and no. It might be possible to get some of the functionnality of 
Django ORM working (crud, related object querying, filtering) but the ORM 
won't address features specific to the graphdbs which might make such a 
project useless. That's why I think people started their own ORM and there 
is no drivers for graphdb in relational orms I know of.

- GraphDB + Django Admin ? No, there is yet no admin that can explore/edit 
a graphdb in Django even if such a thing might be possible to do. Django 
admin is bound to Django ORM, so this is not gonna happen in the forseable 
future unless there is a new admin that is decoupled from the Django ORM. 
Since I'm working on a new admin, I dig this issue but it's not a priority.

- Is it possible to use a graphdb with Django ? Yes see the topic on 
django-users.

Graph databases are a wonderful thing, I think more people should use them 
for the web and not only to solve specific problems related to graphs but 
also for generic web development. There is no or little done in this regard 
in the Python framework space because graphdbs are still, even if lately 
buzzing, in its infantility, but it can be of great help to rapidly 
prototype apps. 

What Django can do ? Nothing or little, like I said earlier even if 
graphdbs share some common patterns with relationnal databases I don't see 
the ORM evolve to support both kind of databases without putting dangerous 
tools in the hand of non-vigilant developpers.

Cheers,


Amirouche

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/kqSmKNCTTlQJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: DJango and OrientDB

2012-09-11 Thread Karen Tracey
On Tue, Sep 11, 2012 at 10:22 PM, Sajjada Akhter wrote:

> My question was should I write db driver etc but I do so I will need to be
> able to participate in framework Dev right?
>
>
You'll have a wider audience who may be able to answer this question:

> I am not sure if i should just use simiple pyorient like library to
access orientDB or should i write new db driver etc

on django-users. This seems to be asking if you should use an existing
library (not Django ORM interface) to access this OrientDB or if you should
write a new Django DB backend (this providing Django ORM interface) to
access this DB. The answer to that question in large part depends on
whether it is worthwhile, for you, given your anticipated needs, to go to
the effort of writing a new backend to get the Django ORM interface or if
the existing library you mention might be easier and sufficient for your
needs.

If you do decide to go the route of writing a new DB backend, that does not
have to be added as part of core Django. While Django has a set of
core-included backends (PostgreSQL, MySQL, Oracle, sqlite) there are others
that are not part of Django and externally maintained (mssql, IBM DB2,
firebird). This list might be useful for asking specific technical
questions when embarking on writing a new DB backend, but for the larger
question you seem to be asking first I think django-users would offer more
useful feedback on your question. There's a greater chance, for example,
that someone on django-users already has experience with the library and DB
you are looking at.

Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: DJango and OrientDB

2012-09-11 Thread Sajjada Akhter
My question was should I write db driver etc but I do so I will need to be able 
to participate in framework Dev right?

On Sep 11, 2012, at 5:57 PM, Karen Tracey  wrote:

> Please ask questions about using Django on django-users. The topic of this 
> list is the development of Django itself.
> 
> Thanks,
> Karen
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To post to this group, send email to django-developers@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-developers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: DJango and OrientDB

2012-09-11 Thread Karen Tracey
Please ask questions about using Django on django-users. The topic of this
list is the development of Django itself.

Thanks,
Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



DJango and OrientDB

2012-09-11 Thread Sajjad
hi,
 
I am planning to use orientDb with Django application (i am yet in design 
stage).
 
I am not sure if i should just use simiple pyorient like library to access 
orientDB or should i write new db driver etc
 
Basically my question is should i worry about not using django db 
functionality if i write custom classes to represent model classes.
 
Thanks,
Sajjad

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/SroraxbeM_gJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.