Does first argument indexing still work if the first argument is a string?



If I have a predicate with a ton of facts and the facts have a string
as the first argument like this example:

db('First Argument', a, b).
db('#Some Argument', a, b).
....

When I do a query such as:

?- db('First Argument', X, Y).

Will I lose the speed benefit of first argument indexing since the
first argument of db/3 is a string and not an atom?

Thanks.

.



Relevant Pages

  • Re: Fastest way to store ints and floats on disk
    ... million facts). ... In the next step I would like to build up a database that is ... but how can I interface that with Python? ... string, and long C structures directly to disk, at a given offset. ...
    (comp.lang.python)
  • Re: Biztalk 2004: How to pass database facts from C# code?
    ... this line right after you add your typed xml document. ... Be sure the string parameters you use to create ... I want to execute a policy rule which gets fired based on some input ... database facts. ...
    (microsoft.public.biztalk.general)
  • Re: Biztalk 2004: How to pass database facts from C# code?
    ... this line right after you add your typed xml document. ... Be sure the string parameters you use to create ... I want to execute a policy rule which gets fired based on some input ... database facts. ...
    (microsoft.public.biztalk.general)
  • Re: Cantor Confusion
    ... To argue otherwise is to ignore the facts. ... string of length n. ... I declare that the characters of the diagonal when strung together form ... You have no balls at noon. ...
    (sci.math)
  • Capture RowMember Drill Down value...
    ... a number of facts about the hovered-over cell. ... I'd like to be able to capture this string and write it to a cookie to ... I need the appropriate combination of objects and properties to capture ...
    (microsoft.public.office.developer.web.components)