How do I create a one-item vector?

25 Mar 2014 | , , ,
Share on:

Answer: Use the keyword enlist

Example:

q)enlist 1 / create a long integer vector of length 1, the output adds a ‘,’ to indicate this,1

SUGGESTED ARTICLES

kdb+ tick database disaster recovery

Kx Technical Whitepaper: Disaster recovery planning for kdb+ tick systems

2 Nov 2017 | , , , ,

This whitepaper discusses disaster recovery and failover concepts from the perspective of the gateway layer accessing a typical kdb+ tick system used in capital markets applications. The end goal of constructing this plan is to ensure high availability of the application via the gateway where possible, considering all conceivable failure scenarios and outlining any actions required to prevent data loss, minimize any downtime and keep the application accessible.