After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 90375 - SQL Backend for Business
SQL Backend for Business
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Business
git-master
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
: 101234 162502 330798 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-08-10 01:46 UTC by Derek Atkins
Modified: 2018-06-29 20:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Derek Atkins 2002-08-10 01:46:51 UTC
Implement a SQL backend for the business objects
Comment 1 Chris Lyttle 2002-12-29 22:31:21 UTC
*** Bug 101234 has been marked as a duplicate of this bug. ***
Comment 2 Derek Atkins 2004-12-30 16:12:09 UTC
*** Bug 162502 has been marked as a duplicate of this bug. ***
Comment 3 Christian Stimming 2005-02-23 09:35:19 UTC
Err.. Derek, can you add some quick notes about how this is achieved and what
needs to be done? The very same steps needs to be done for the HBCI importing
modules bug#165096 , so I would be glad to have some hints on how to do this.
Comment 4 Derek Atkins 2005-02-23 15:44:38 UTC
What needs to be done to solve this is a complete SQL re-write.  The whole way
the SQL backend interacts with GnuCash objects needs to be fixed.  The Query
mechanism needs to be extended to handle queries for objects besides
transactions.  And each "new" object needs to get sql tables and lookup/commit
functions.

Basically, the code just isn't modular enough.
Comment 5 Derek Atkins 2006-02-11 16:26:44 UTC
*** Bug 330798 has been marked as a duplicate of this bug. ***
Comment 6 Tony Shadwick 2006-08-10 04:53:58 UTC
I'm wondering, I've been watching this bug for over a year now I think.  Are there coders on the project capable of doing this proposed re-write?  If so, what kind of monetary compensation would those coders require to knock this out?  Our company could seriously use a db backend (preferably postgres) so that we can integrate with our billing system.
Comment 7 Derek Atkins 2006-08-10 21:11:40 UTC
As far as I know there is nobody actively working on a SQL rewrite.
I don't know how to answer your other questions, I'm afraid.
Comment 8 SD 2006-10-05 18:56:42 UTC
Tony Shadwick, how much is this worth to your company.  I'm not a current gnucash developer, but I'd be willing to look into it.  I have quite a bit of sql programming experience, so it wouldn't be too hard to figure out I think.  

Currently I just use gnucash personally.
Comment 9 Rolf Leggewie 2008-11-04 21:32:13 UTC
Is this still something that needs to be done?  The SQL backend has recently been added for gnucash as a whole.  Or is this something else?
Comment 10 Derek Atkins 2008-11-05 14:36:27 UTC
Well, it's something that needs to get into a major release...  And I think there still needs to be lots of testing of this feature.  But yeah, the new dbi backend does indeed solve this request.
Comment 11 RIck van Rein 2008-12-28 14:15:54 UTC
In some future, I'm sure GnuCash will want to support multi-user access to the stored transactions through a database backend.  If that is to happen, GnuCash will want to move to quick searches in the database, as it cannot rely on locally stored data.

There is a very useful bit of research on storing XML-ish data in plain relational databases, and searching information in it _very_ fast.  This approach uses an  indexing method that is a truly clever find.  I think it is worth an investigation by anyone contemplating to take on a database backend mapping:

http://www-db.informatik.uni-tuebingen.de/research/pathfinder
http://wwwhome.cs.utwente.nl/~keulen/wordpress/2006/06/mxq-sigmod2006/
http://wwwhome.cs.utwente.nl/~keulen/wordpress/category/research/pf-mxq/

I hope this is useful.


Best regards,

Dr.ir. Rick van Rein
OpenFortress Digital signatures
Comment 12 Phil Longstaff 2009-04-25 21:36:09 UTC
The dbi/sql backend is a resolution to this and is targetted for 2.4.
Comment 13 John Ralls 2018-06-29 20:15:40 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=90375. Please update any external references or bookmarks.