Add ASP.NET Membership tables to my own existing database, or should I instead configure a separate ASP.NET membership database?

I personally just added the asp.net membership stuff to my own database. I then wrote a basic wrapper class around System.Web.Security.Membership class so that the code acts like its using its own membership stuff. Its pretty slick and not that hard to do. If you need assistance setting it up, here is what I did. … Read more

Database table design for scheduling tasks

This is the table structure i came up with; Schedule – ScheduleName – ScheduleTypeId (Daily, Weekly, Monthly, Yearly, Specific) – StartDate – IntervalInDays – Frequency – FrequencyCounter ScheduleDaily – ScheduleDailyId – ScheduleId – TimeOfDay – StartDate – EndDate ScheduleMonthly – ScheduleMonthlyId – ScheduleId – DayOfMonth – StartDate – EndDate ScheduleSpecific – ScheduleSpecificId – ScheduleId – … Read more

MongoDB structure: single collection vs multiple smaller collections

I would recommend NOT to make separate collection per user. Read the documentation By default MongoDB has a limit of approximately 24,000 namespaces per database. Each namespace is 628 bytes, the .ns file is 16MB by default. Each collection counts as a namespace, as does each index. Thus if every collection had one index, we … Read more

What is the recommended equivalent of cascaded delete in MongoDB for N:M relationships?

What you are doing is the best and most optimal way of doing it in Mongo. I am in a similar situation and after going all possible implementations of the N:M design pattern, have also arrived to this same solution. Apparently, This is not a mongodb thing, but more of a concept of NoSQL, wherein, … Read more

Choice of Database schema for storing folder system

Your first schema will work just fine. When you put an index on the FullPath column, use either the case-sensitive BETWEEN operator for queries, or use LIKE with either COLLATE NOCASE on the index or with PRAGMA case_sensitive_like. Please note that this schema also stores all parents, but the IDs (the names) are all concatenated … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)