The liens created by this chapter are preferred to any lien, mortgage or other encumbrance which may attach subsequently to the time of the commencement of the performance of the labor, or the furnishing of the materials for which the right of lien is given by this chapter, and are also preferred to any lien, mortgage or other encumbrance which may have attached previously to that time, and which was not filed or recorded so as to create constructive notice of the same prior to that time, and of which the lien claimant has no notice.