Hi Martin,

On Fri, Jun 22, 2018 at 5:35 PM Martin Lourduswamy <martin.louis@gmail.com> wrote:
Hi,
I used

db:node-pre(db:text("db", "ae4b577bd9f578556cd")//../..)

delete node db:open-pre("db",333)

to immensely speed the basex access. Thanks for helping me with how to get a db:node form basex.

I have one more question. I am using FreeBSD to host BaseX and it is stable so for in the testing. Are there any known problems of openjdk8 on FreeBSD and baseX. I could not find any issues so far with basex. But I read somewhere that openjdk8 on FreeBSD dumps core some time. I think it is for specific applications only not for baseX. Just a architectural suggestion on picking the best OS to host baseX.

Please let me know when you have some time,

*gasp* there's another one! :) I am using BaseX and FreeBSD, and have been now for several years, and haven't experienced any problems from the OpenJDK. 

The only thing I can think to mention is that if you're using ZFS on your FreeBSD box, you might get some benefit from looking in to database-specific tuning for the zpool that hosts BaseX's data files. I'm trying to find some relevant links; when I do I'll share them here.

( BaseX works excellent on Windows, CentOS and FreeBSD and produced same results in all of them. But on windows the disk was close to 100% in windows while running my application, centos and FreeBSD has no problems. )

Thanks,
Regards
Martin Lourduswamy


Best,
Bridger
 

 





On Thu, Jun 14, 2018 at 2:36 PM, Christian Grün <christian.gruen@gmail.com> wrote:
Hi Martin,

The behavior of BaseX is similar on Windows and Linux.

I would guess you started the application from different directories?
With file:current-dir(), you get your current working directory [1].
file:base-dir() points you to the directory in which your XQuery file
is stored.

Best,
Christian

[1] http://docs.basex.org/wiki/File_Module#file:current-dir


On Thu, Jun 14, 2018 at 2:35 PM Martin Lourduswamy
<martin.louis@gmail.com> wrote:
>
> Hi,
> I have a query that creates DB
>
> db:create("database", "db.xml")
>
> I have put the db.xml in the bin dir.
>
> This works for unix/Linux, but on windows I need to specifically give bin dir lke
>
> db:create("database", "bin/db.xml")
> Otherwise it does not work.
>
> I do not want to hard code path in the script. Is there a general way to specify the path,
> Thanks,
> Regards
> Martin Lourduswamy