Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some debugging information if needed #8

Open
anton-107 opened this issue Mar 29, 2011 · 1 comment
Open

Add some debugging information if needed #8

anton-107 opened this issue Mar 29, 2011 · 1 comment
Labels

Comments

@anton-107
Copy link

Right now i'm keep getting "not_found" error when i call Data.Graph.fetch() method.

How am i supposed to see what actually is going on? What query is sent to CouchDB? It would be nice to request this kind of output in ie. .setAdapter() method

@michael
Copy link
Member

michael commented Mar 29, 2011

I'm working on a full rewrite of the the CouchAdapter that will be ready with Data.js 0.3.0. The current adapter is just a rough implementation to test the API against. They way queries are working doesn't scale at all (a new view is created for every new combination of query parameters). So it's not recommended to consider 0.2.0 for a production environment — at least not for querying. I'll try to make query execution transparent and debuggable in the new version.

With 0.3.0 I'll be adding support for:

  • Indices (Primary key)
  • Constraints (unique properties, referential integrity, etc.)

Queries then will be much faster because they're a based on explicit indices (which conforms to the nature of CouchDB).

In the meanwhile please use regular CouchDB views for querying, build subgraphs and merge them yourself.

See https://github.com/michael/substance/blob/master/server.js#L172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants