We have already GsQuery (for filtering) - can we get also stuff (or extensions of GsQuery) like:
... you see my direction :-) Marten _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Marten,
I think your direction makes a lot of sense :) Could you put together a more detailed proposal in the form of suggested method selectors and descriptions. I could then use that as an implementation spec ... perhaps others will have additional suggestions as well and I could kill several birds with one stone ... Dale On 05/24/2016 01:27 AM, Marten
Feldtmann via Glass wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Ok, first I'm not talking about how to use avalable indices or stuff like this - and perhaps OQL (ODMG 3.0) is a little bit overkill. I would like to see something like: SELECT OBJECT [ SET variable = value, .... ] WHERE <old GsQuery string > ORDERBY <path> <asc | desc> LIMIT <number> OFFSET <number> Some points:
Marten Dale Henrichs via Glass <[hidden email]> hat am 24. Mai 2016 um 19:24 geschrieben:
_______________________________________________ _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Marten, So you are proposing extensions to the query language? ... Do you
expect your end users to be writing these queries? There is a Smalltalk API for creating queries where you can define predicates programmatically. When you do this you have a lot more freedom in creating queries. For example, I've added a block predicate where you can include a Smalltalk block as part of GsQuery expression --- I haven't defined a query syntax for including a smalltalk block, but the programmatically it is very useful in some cases ... Dale On 5/26/16 3:48 AM, Marten Feldtmann
wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Well, there are several use cases here:
Its a boring situation to tell customers, that oo-dbms systems have limited query facilities in comparision to their so well known relational database. Marten Dale Henrichs <[hidden email]> hat am 26. Mai 2016 um 15:59 geschrieben: _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
I think that it would be very straightforward to provide a NOSQL
object/api based query model with the additional features you
suggest.
SET is already handled by #bind:to: ORDERBY, LIMIT, OFFSET could be implemented with an #orderBy:direction:offset:limit: method implemented in GsQuery with mostly "off the shelf" methods and classes: a combination of a query readStream for offset and limit and a combination of Collection>>sortDescending: or Collection>>sortDescending: for direction ... if performance were an issue, I think it would be possible to incorporate the offset and limit into the query evaluator and gain some efficiency... I'm less inclined to implement OSQL style queries because the object/api based queries are so much more flexible - allowing UI designers to compose query objects from custom ui elements rather than require the end-user to compose an OSQL query themselves. I recognize that for some applications the end users are sophisticated enough and familiar enough with the object model to compose their own OSQL queries, but I would think that with petit parser it might be possible to design a query language that is application specific rather than try to come up with a generic query language that meets all needs ... Dale On 05/26/2016 11:34 AM, Marten
Feldtmann wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Free forum by Nabble | Edit this page |