简体   繁体   English

我如何知道ruby on rails应用程序是否使用数据库分区?

[英]How do I know if a ruby on rails application use database partitioning?

I would like to disable my rails application's oracle database partitioning, but : 我想禁用Rails应用程序的oracle数据库分区,但是:

  1. I don't know how to tell whether my app is using database partitioning 我不知道如何判断我的应用程序是否正在使用数据库分区
  2. I don't know how to find the place my app use partitioning, since I didn't write most of the application's code myself 我不知道如何找到我的应用程序使用分区的位置,因为我自己没有编写大多数应用程序代码

Can I just system search the code base for the keyword 'Partition' and look for any result that has the key word partition in raw SQL statement? 我可以仅在系统的代码库中搜索关键字“ Partition”,并在原始SQL语句中查找包含关键字分区的任何结果吗?

How should I go about this? 我应该怎么做?

Thanks! 谢谢!

Update: 更新:

I have 2 answers below and they seem to understand my question differently 我在下面有2个答案,他们似乎对我的问题有不同的理解

I am confused now as well. 我现在也很困惑。 I want to disable the partition feature of my Oracle Database ( https://www.oracle.com/technetwork/database/options/partitioning/overview/index.html ), does that means I cannot use the 'partition by' keyword ( Oracle "Partition By" Keyword ) anymore? 我想禁用Oracle数据库的分区功能( https://www.oracle.com/technetwork/database/options/partitioning/overview/index.html ),这意味着我不能使用'partition by'关键字( Oracle的“ Partition By”关键字 )了吗?

Partitioning is done at the schema level declaratively. 声明式地在模式级别进行分区。 Usually, one would not expect the application code to directly need anything specific to use partitioning since it is done at the data definition level. 通常,人们不会期望应用程序代码直接需要使用分区的任何特定功能,因为它是在数据定义级别完成的。 You can connect to the schema owner account and check the data dictionary views USER_PART_TABLES for partitioned tables owned by the user and USER_PART_INDEXES for the indexes. 您可以连接到架构所有者帐户,并在数据字典视图USER_PART_TABLES中检查该用户拥有的分区表,在USER_PART_INDEXES中检查索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM