So I'm working a very large site that is very data heavy. I'm wanting to go with a combo of ruby + MongoDB.
The only reason I'm the slightest hesitant is that unlike MySQL, Mongo doesn't have an auto increment feature. The reason that is important is I anticipate that certain records could have the exact same data that I would match against.
In the past I've done something like: rowid-data-to-match-against.
Mind you this is in the URL for SEO purposes.
Now two decent, but not as easy solutions come to mind.
1) Create a unique slug. For example data-to-match-against-number. number being the iteration.
2) Create my own auto-increment system that uses another table to keep track of all the auto-increment values. Or use a single record in target table to handle keeping track of the auto-increment.
What would you use? One of the two solutions above or something totally different?
The only reason I'm the slightest hesitant is that unlike MySQL, Mongo doesn't have an auto increment feature. The reason that is important is I anticipate that certain records could have the exact same data that I would match against.
In the past I've done something like: rowid-data-to-match-against.
Mind you this is in the URL for SEO purposes.
Now two decent, but not as easy solutions come to mind.
1) Create a unique slug. For example data-to-match-against-number. number being the iteration.
2) Create my own auto-increment system that uses another table to keep track of all the auto-increment values. Or use a single record in target table to handle keeping track of the auto-increment.
What would you use? One of the two solutions above or something totally different?