W3C home > Mailing lists > Public > public-sparql-dev@w3.org > April to June 2010

Performance comparison: direct select or regex filter ?

From: Parsa Ghaffari <parsa.ghaffari@gmail.com>
Date: Thu, 29 Apr 2010 20:52:21 +0430
Message-ID: <v2p5e35c3881004290922ga7d69237z1c773a5ef2776f7b@mail.gmail.com>
To: public-sparql-dev@w3.org
Hi there,

How different are these queries in terms of performance:

1) SELECT * WHERE { ?x foaf:name "John Smith"@en }

2) SELECT * WHERE { ?x foaf:name ?y. FILTER regex(?y,"^John Smith") }


Regards,
Parsa B. Ghaffari
Received on Thursday, 29 April 2010 16:30:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:50 UTC