几天前我在cassandra数据库引擎上听说过,并在上面搜索一个很好的文档.在研究了cassandra后,我得到的cassandra比其他数据引擎更具可扩展性.我也在Amazon SimpleDB上阅读,但由于SimpleDB的限制为10GB/table,而Google Datastore比Amazon SimpleDB慢,我不想使用它们(Google Datastore,Amazon SimpleDB).因此,为了使我们的网站使用大量数据扩展特别高的写入速率,我喜欢使用Cassandra作为我们的数据引擎.
但在开始使用cassandra之前,我对"如何使用casssandra处理复杂数据"感到困惑.我给你下面的MySQL数据库结构,请阅读这个并给我一个很好的建议.
用户表
hasColum ID主要
hasColum电子邮件唯一
hasColum FirstName
hasColum LastName
类别表
hasColum ID主要
hasColum父
hasColum类别
帖子表
hasColum ID主要
hasColum UID索引外键链接到用户 - > ID
hasColum CID索引外键链接到Category-> ID
hasColum Title
hasColum Post Index
hasColum PunDate
注释
hasColum ID primary
hasColum UID索引外键链接到
users- > ID hasColum PID索引外键链接到Posts-> ID
hasColum Comment
用户组
hasColum ID主要
hasColum名称
UserToGroup表(仅限多对多关系)
hasColum UID外键链接到Users-> ID
hasColum GID外键链接到Group-> ID
最后,为了您的信息,我喜欢使用SimpleCassie PHP类http://code.google.com/p/simpletools-php/ 因此,如果您可以使用SimpleCassie给我示例,那将非常有用
我收到以下错误消息:
Doctrine_Table_Exception:第237行/home/public_html/projects/giftshoes/system/database/doctrine/Doctrine/Relation/Parser.php中的未知关系别名shoesTable
我正在使用Codeigniter的doctrine 1.2.2
我的代码如下:(BaseShoes.php和Shoes.php是自动生成的)
------------ ------------ BaseShoes
<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('Shoes', 'sadiqsof_giftshoes');
/**
* BaseShoes
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $sku
* @property string $name
* @property string $keywords
* @property string $description
* @property string $manufacturer
* @property float $sale_price
* @property float $price
* @property string $url
* @property string $image
* @property string $category
* @property Doctrine_Collection $Viewes
*
* @package ##PACKAGE##
* …Run Code Online (Sandbox Code Playgroud)